Learn R Programming

mirt (version 1.17.1)

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

Description

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

Usage

## S3 method for class '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
x <- mirt(Science, 1)
x2 <- mirt(Science, 2)
anova(x, x2)

Run the code above in your browser using DataLab