-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Differences between get_predicted and get_predicted_ci for mixed models #797
Comments
M <- model.matrix(m1)
V <- vcov(m1)
se <- sqrt(diag(M %*% V %*% t(M))) based on https://bbolker.github.io/mixedmodels-misc/glmmFAQ.html#lme4. Thus, when calling I think this should be clearly documented, and that |
Tagging @bbolker just FYI. |
Not sure if the documentation I added is sufficient, so I'll keep this issue open. |
This is something that came up during a visit to @bbolker with @emitanaka. Basically, for (G)LMMs, the standard errors returned by
get_predicted
andget_predicted_ci
differ.An example for LMMs first:
For the issue above, and with respect to the insights package, my bigger concern is the inconsistency in modem
m2
. As mentioned, the issue why the prediction errors differ betweenlmer
andglmmTMB
is something @bbolker is already aware of; see this github issue from glmmTMBThings gets a bit weirder for GLMMs though, and this is where I will throw my hands up in the air (even higher!)
The text was updated successfully, but these errors were encountered: