powered by
Calculate Uhats (variance for each imputed dataset)
Uhats(qhats, nrow)
vector of Qhats(means of response for each imputed dataset)
number of observations in the imputed dataset
Uhats: vector of response variances for each imputed dataset
# NOT RUN { imp = mice::mice(mice::nhanes) qhats = Qhats(imp, "hyp") nrow = imp$data %>% nrow() Uhats(qhats, nrow) # }
Run the code above in your browser using DataLab