powered by
Helper function for getting rm, a key component for calculating degrees of freedom and the wilson CI directly
Rm(qhats, m, nrow)
vector of Qhats(means of response for each imputed dataset)
number of imputed datasets
number of observations in the imputed dataset
rm
# NOT RUN { imp = mice::mice(mice::nhanes) qhats = Qhats(imp, "hyp") m = imp$m nrow = imp$data %>% nrow() Rm(qhats, m, nrow) # }
Run the code above in your browser using DataLab