-
Notifications
You must be signed in to change notification settings - Fork 24
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
feature request: Tidy random effects from nested mixed effect models #152
Comments
I also noticed that there was no method to tidy a Variance Components object of a fit from lme4 or nlme. While it may seem not necessary due to the extensive work of tidying an object directly, these functions would be helpful tools working toward tidying a nested random effects model. Here is a proposed and preliminary solution of a regular random effects model with lme4 and nlme:
|
There is no issue in tidying a crossed random effects model using lme4::lmer(). The tidy.merMod() function tidies the random effects fine. (I added this in case other readers are curious)
|
TIDYING NLME CROSSED INTERCEPT MODELSIf we can create a tibble from VarCorr.lme (nlme::lme). that would solve the problem... Here is some preliminary work in attempt to do just that.
Could we apply the function |
Revisiting this. Have started to implement bits of it but still a little bit confused/uncertain about some parts.
|
Thank you for making the broom.mixed package and be able to tidy model results from mixed effect modeling packages.
Recently, I fitted a nested random intercept model and realized that the random parameters are not tidied. All i really want is to have the variance estimates in a nice tibble.
Example:
Created on 2024-08-30 with reprex v2.1.1
Using
VarCorr()
it should be possible to extract the relevant componentsI get an error trying to create this into a tibble.
The text was updated successfully, but these errors were encountered: