Learn R Programming

MIWilson (version 1.0.0)

Rm: Helper function for getting rm, a key component for calculating degrees of freedom and the wilson CI directly

Description

Helper function for getting rm, a key component for calculating degrees of freedom and the wilson CI directly

Usage

Rm(qhats, m, nrow)

Arguments

qhats

vector of Qhats(means of response for each imputed dataset)

m

number of imputed datasets

nrow

number of observations in the imputed dataset

Value

rm

Examples

Run this code
# 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