We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
weightit2glm.cont
Hello, thanks for the great package. I've run into an error when calculating weights for continuous treatment and provided propensity scores (ps)
ps
data("lalonde", package = "cobalt") W.out.c <- WeightIt::weightit(re75 ~ age + educ + race + married + nodegree + re74, data = lalonde, ps = rep(1, 614), method = "energy") # Error in weightit2glm.cont(covs = covs, treat = treat, s.weights = s.weights, : # object 'gp.score' not found
Looks like this code block needs an else statement to set gp.score <- ps
else
gp.score <- ps
The text was updated successfully, but these errors were encountered:
Thanks for the report! This will be fixed in the next version.
Sorry, something went wrong.
No branches or pull requests
Hello, thanks for the great package. I've run into an error when calculating weights for continuous treatment and provided propensity scores (
ps
)Looks like this code block needs an
else
statement to setgp.score <- ps
The text was updated successfully, but these errors were encountered: