Anova.mira {carEx}R Documentation

ANOVA for mira Objects

Description

This function provides a "mira" method for the Anova 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

## S3 method for class 'mira'
Anova(mod, type = c("II", "III", 2, 3), ...)

Arguments

mod

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

type

type of test, see Anova.

...

not used.

Details

The tests produced are Wald tests, using the total covariance matrix for the model coefficients (including components for within and between-imputations variation) to formulate the hypothesis matrices for type II tests.

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.

See Also

Anova, linearHypothesis.mira, mira, mice-package.

Examples

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))
    Anova(models)
}

[Package carEx version 0.2-0 Index]