You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: pooling ORM results using imputed data
#662
Direct pooling requires that the analysis-function, orm() in this case, has an associated broom::tidy()-method to output the parameters in an organized way. To put it differently, if there is no broom::tidy() method associated with the analysis function, mice::pool() does not now which parameters to combine. You can solve this by collecting the parameters that you want to pool from the MT_empty list, with their respective variances, and using mice::pool.scalar(). You can check how this function works using ?mice::pool.scalar, but the function expects Q, a vector with the parameter estimates of a single parameter for all imputed data sets, U, a vector with the estimated variances of the corresponding parameters, n, the size of the sample on which the analysis is performed, and k, the number of parameters in your model. Accordingly, you can run this function for every parameter in your model. Note that these pooling rules assume normality on the parameters of interest.
This discussion was converted from issue #656 on August 16, 2024 12:24.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I wanted to pool results from my ORM function after imputing my data (m=100).
This is what the code looks like;
MT_empty <- with (Trajectories_imp, orm (class ~ BIA_BMI + Age + Gender + Educationlevel))
MT_empty1 <- pool (MT_empty)
the first line works fine, however when I try to pool I get the following error:
Error: No tidy method for objects of class orm
I also tried loading broom.mixed before, but that doesn't seem to fix the issue. Any suggestions?
All reactions