Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

robincar_glm2 #19

Closed
tye27 opened this issue Apr 7, 2024 · 1 comment
Closed

robincar_glm2 #19

tye27 opened this issue Apr 7, 2024 · 1 comment

Comments

@tye27
Copy link
Collaborator

tye27 commented Apr 7, 2024

If I used
RobinCar::robincar_glm2(df=dfSim,
treat_col = "A", response_col = "y",
g_family = "nb",
formula = as.formula("y ~ A + Xc + Xb"))

The outputs have errors and say:
Error in family$family : $ operator is invalid for atomic vectors
In addition: Warning message:
In func() : Prediction unbiasedness does not hold.

But if I used RobinCar::robincar_glm2(df=dfSim,
treat_col = "A", response_col = "y",
g_family = "nb",
formula = as.formula("y ~ A + Xc + Xb"))$result

It will give correct outputs.

@mbannick
Copy link
Owner

mbannick commented Apr 8, 2024

Hi Ting, please see PR #20 -- I've fixed this issue. Thanks for finding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants