Learn R Programming

mirt (version 1.19)

anova-method: Compare nested models with likelihood-based statistics

Description

Compare nested models using likelihood ratio, AIC, BIC, etc.

Usage

# S4 method for SingleGroupClass
anova(object, object2, verbose = TRUE)

Arguments

object

an object of class SingleGroupClass, MultipleGroupClass, or MixedClass

object2

a second model estimated from any of the mirt package estimation methods

verbose

logical; print additional information to console?

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
x <- mirt(Science, 1)
x2 <- mirt(Science, 2)
anova(x, x2)
# }

Run the code above in your browser using DataLab