-
-
Notifications
You must be signed in to change notification settings - Fork 135
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_linpred() does not use newdata for stann_gamm4 models #132
Comments
posterior_linpred()
does use newdata
for stann_gamm4
models
I believe the issue here has to do with the fact that you are adding a constant (0.1). If you add |
So, I guess we should tack on the original mean(s) multiplied by the coefficients. |
Yeah, I think you need to correct for mgcv's centering if you're reconstructing the gam object when doing this. For my particular application, I need to add a constant in order to estimate the derivatives of the smooths, but in any case we'll want to be able to get predictions on an absolute scale. |
This should be fixed on GitHub now. It goes back to the mgcv-style parameterization, so now Stan is calling |
Summary:
posterior_linpred()
does not seem to usenewdata
forstann_gamm4
modelsDescription:
When I pass a new data frame to
posterior_linpred()
along with a model fit withstan_gamm4
, the result is identical to the case where I don't pass any new data at all.Reproducible Steps:
This results in TRUE
RStanARM Version:
2.13.1 (installed from github)
R Version:
3.3.1
Operating System:
OS X 10.12.1
The text was updated successfully, but these errors were encountered: