-
Notifications
You must be signed in to change notification settings - Fork 109
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
Question: Manually pooling parameters from RE model/Degrees of freedom #483
Comments
This doesn't answer your question, but have you tried using the A workflow where
|
Thank you for the reference. I’m pooling marginalized coefficients from glmmadaptive package, so I need to use pool.scalar, else that workflow would be fine. Whether the RE should still be counted as parameter after marginalization is another issue I need to look into, but I thought knowing what the standard workflow does would be good. |
Note: You will need to install the |
Hi! I have a very related problem. I am fitting a model with the package
I wonder if this seems like the correct way to use pool.scalar, and specifically, I wonder about k, as the model really seems to be fitting many more parameters "behind the scenes".
And finally, thank you for a great package! |
@martinschlund the new |
Does the automatic pool() function count a random effect (e.g., a random intercept) as a parameter in calculating the degrees of freedom for a mixed model? I ask because I would like to manually pool using pool.scalar but I'm not sure if this should be counted under the "k" parameters. Also, if using pool.scalar for a multiple regression problem, you should include "k=# of total parameters in model" in calculating each pooled coefficient, correct? E.g.,
For a model with 5 parameters (4 covariates plus intercept)
Pooling 1st coefficient estimate
pool.scalar(Q, U, n = 50, k = 5)
Pooling 2nd coefficient estimate
pool.scalar(Q, U, n = 50, k = 5)
etc...
The text was updated successfully, but these errors were encountered: