Rm: Helper function for getting rm, a key component for...

Description Usage Arguments Value Examples

View source: R/Wilson.R

Description

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

Usage

1
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

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

MIWilson documentation built on Aug. 24, 2021, 1:06 a.m.