Learn R Programming

tramME (version 0.1.3)

anova.tramME: Comparison of nested tramME models.

Description

Calculates information criteria and LR ratio test for nested tramME models. The calculation of the degrees of freedom is problematic, because the parameter space is restricted.

Usage

# S3 method for tramME
anova(object, object2, ...)

Arguments

object

A tramME object.

object2

A tramME object.

...

Optional arguments, for compatibility with the generic. (Ignored)

Value

A data.frame with the calculated statistics.

Details

Currently only supports the comparison of two models. Additional arguments will be ignored.

The nestedness of the models is not checked.

Examples

Run this code
# NOT RUN {
data("sleepstudy", package = "lme4")
mod1 <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
mod2 <- LmME(Reaction ~ Days + (Days || Subject), data = sleepstudy)
anova(mod1, mod2)
# }

Run the code above in your browser using DataLab