deltaMethod.mira: deltaMethod Method for mira Objects

Description Usage Arguments Details Author(s) References See Also Examples

Description

This function provides a "mira" method for the deltaMethod function in the car package. mira objects are produced by fitting statistical models to multiply imputed data sets using functions in the mice package: mice-package.

Usage

1
2
## S3 method for class 'mira'
deltaMethod(object, ...)

Arguments

object

an object of class "mira" produced by the mice package, mice-package.

...

other arguments to be passed to deltaMethod.

Details

t-test statistics and degrees of freedom are computed as for Wald tests, using the approach described in Barnard and Rubin (1999) if the complete-data residual degrees of freedom are known and by the approach in Rubin (1987) if they are not known.

Author(s)

John Fox jfox@mcmaster.ca

References

J. Fox, Applied Regression Analysis and Generalized Linear Models, 3rd ed., Sage, 2016.

S. van Buuren, Flexible Imputation of Missing Data, 2nd ed., Chapman and Hall, 2018.

J. Barnard and D. B. Rubin, Small-sample degrees of freedom with multiple imputation. Biometrika, 1999, 86:948-955.

D. B. Rubin, Multiple Imputation for Nonresponse in Surveys, Wiley, 1987.

See Also

deltaMethod, mira, mice-package.

Examples

1
2
3
4
5
6
7
if (require(mice)){
    nhanes2$age <- factor(nhanes2$age, 
        labels=c("age20.39", "40.59", "60.99"))
    imps <- mice(nhanes2, m=10, print=FALSE, seed=12345)
    models <- with(imps, lm(chl ~ age + bmi))
    deltaMethod(models, "age40.59/age60.99")
}

carEx documentation built on June 28, 2019, 3:01 p.m.