Learn R Programming

MIWilson (version 1.0.0)

Tm: Estimate variance of proportion point estimate \(\bar{Q}_m\)

Description

Estimate variance of proportion point estimate \(\bar{Q}_m\)

Usage

Tm(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

variance of proportion point estimate

Examples

Run this code
# NOT RUN {
imp = mice::mice(mice::nhanes)
qhats = Qhats(imp, "hyp")
m = imp$m
nrow = imp$data %>% nrow()
Tm(qhats, m, nrow)

# }

Run the code above in your browser using DataLab