Learn R Programming

binaryMM (version 0.1.1)

anova.MMLong: Comparing Two Models: ANOVA

Description

Compute analysis of variance tables for two fitted model objects

Usage

# S3 method for MMLong
anova(object, ...)

Value

ANOVA table

Arguments

object

a list with two elements. Element 1 is the first model fit using mm, element 2 is the second model fit using mm

...

additional control variables

Examples

Run this code
# \donttest{
data(datrand)
fit1 <- mm(Y~time*binary, t.formula=~1, data=datrand, id=id, step.max=4, verbose=FALSE)
fit2 <- mm(Y~time*binary, t.formula=~1, lv.formula =~1, data=datrand,
id=id, step.max=4, verbose=FALSE)
anova(fit1,fit2)# }

Run the code above in your browser using DataLab