anova.eRm: Analysis of Deviances for Rasch Models

Description Usage Arguments Details Value Warning Author(s) See Also Examples

Description

Performs likelihood ratio tests against the model with the largest number of parameters.

Usage

1
2
3
4
5
## S3 method for class 'eRm'
anova(object, ...)

## S3 method for class 'eRm_anova'
print(x, ...)

Arguments

object

Gives the first object to be tested against others which follow, separated by commata.

x

An object of class "eRm_anova".

...

Further models to test with anova.eRm().

Details

The anova method is quite flexible and, as long the used data are identical, every model except the LLRA can be tested against each other. Regardless of the order that models are specified, they will always be sorted by the number of parameters in decreasing order. If >= 3 models are passed to the method, all models will be tested against the first model (i.e., the one with the largest amount of parameters).

Value

anova.eRm returns a list object of class eRm_anova containing:

calls

function calls of the different models (character).

statistics

the analysis of deviances table (columns are LLs: conditional log-likelihoods, dev: deviances, npar: number of parameters, LR: likelihood ratio statistics, df: degrees of freedom, p: p-values).

Warning

Although, there is a check for identical data matrices used, the models have to be nested for the likelihood ratio test to work. You have to ensure that this is the case, otherwise results will be invalid.

LLRAs cannot be tested with other models (RM, LLTM, RSM, ...); for more information see anova.llra.

Author(s)

Marco J. Maier

See Also

anova.llra, anova

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
### dichotomous data
dmod1 <- RM(lltmdat1)
dmod2 <- LLTM(lltmdat1, mpoints = 2)
anova(dmod1, dmod2)

### polytomous data
pmod1 <- RSM(rsmdat)
pmod2 <- PCM(rsmdat)
anova(pmod1, pmod2)

W <- cbind(rep(c(1,0), each=9), rep(c(0,1), each=9))
W
pmod3 <- LPCM(rsmdat, W)
anova(pmod3, pmod1, pmod2) # note that models are sorted by npar


Search within the eRm package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.