-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
posterior_predict() fails with newdata for models estimated with family = mgcv::betar #407
Comments
A duplicate of #406. |
@martinmodrak, not sure if this helps solve the issue but posterior_predict and posterior_linpred do run if newdata are specified and the predictions ignore the group level terms i.e. re.form=~0 or NA library(rstanarm) SEED=101 P <- posterior_linpred(res, newdata=test)#throws an error |
I think this is finally fixed now. Sorry it took so long to get to this! The fix is now on the master branch and will be included in the next release. |
I am still getting errors when using the posterior_* functions for betar models.
|
Summary:
Similar to #324, I can run
posterior_predict
andposterior_linpred
for betareg models, but as soon as I specifynewdata = XX
I get an error.Description:
Running posterior_linpred with newdata (even if the newdata argument is the same as the data used to estimate the model) results in the following error:
The workaround mentioned in #324 (adding class) does not help.
Reproducible Steps:
RStanARM Version:
2.19.2
R Version:
3.6.0
Operating System:
Windows 10
The text was updated successfully, but these errors were encountered: