-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Projection onto the full model for multilevel Gaussian models #323
Comments
Minor update: When re-running the reprex above, I now get the following warnings:
Nevertheless, I think this still illustrates the issue. (Argument |
Further update: As mentioned at https://discourse.mc-stan.org/t/cv-varsel-error-infinite-or-missing-values-in-x/31703/8, the projection of a Gaussian multilevel reference model onto the full model can even lead to an error. |
For multilevel Gaussian models, the projection onto the full model could be instable, if not even incorrect:
The instability can be seen from the warnings
shown when debugging as outlined in the reprex above and from comparing
simres$sd_prj
tosimres$sd_ref
.This instability does not seem to occur when projecting onto an actual submodel (e.g., by uncommenting
soltrms <- setdiff(soltrms, grep("^Xcont", soltrms, value = TRUE))
in the reprex above).The reason for the instability could be that in the projection onto the full model (i.e., in the
lme4::lmer()
fit), the residual SD is zero. So far, I did not encounter a similar issue for non-multilevel Gaussian models fitted viaprojpred:::fit_glm_ridge_callback()
or viaprojpred:::fit_glm_callback()
. So this could indeed be restricted to multilevel models.This issue shows that—at least as a first step—the convergence of the algorithms used for fitting the submodels needs to be checked. For this, see the code started in PR #259. As a longer-term objective, I think we need to investigate this issue via simulation to find out if it's really an issue and—if yes—fix it.
The text was updated successfully, but these errors were encountered: