dof: Calculate degrees of freedom used in calculating confidence...

Description Usage Arguments Value Examples

View source: R/Wilson.R

Description

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

Usage

1
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

1
2
3
4
5
imp = mice::mice(mice::nhanes)
qhats = Qhats(imp, "hyp")
m = imp$m
nrow = imp$data %>% nrow()
dof(qhats, m, nrow)

hungf8342/MIWilson documentation built on Dec. 20, 2021, 5:50 p.m.