Learn R Programming

MIWilson (version 1.0.0)

dof: Calculate degrees of freedom used in calculating confidence intervals of t-distributed proportion point estimate \(\bar{Q}_m\)

Description

Calculate degrees of freedom used in calculating confidence intervals of t-distributed proportion point estimate \(\bar{Q}_m\)

Usage

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

degrees of freedom

Examples

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

# }

Run the code above in your browser using DataLab