Learn R Programming

MIWilson (version 1.0.0)

Uhats: Calculate Uhats (variance for each imputed dataset)

Description

Calculate Uhats (variance for each imputed dataset)

Usage

Uhats(qhats, nrow)

Arguments

qhats

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

nrow

number of observations in the imputed dataset

Value

Uhats: vector of response variances for each imputed dataset

Examples

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