anova.MMLong {binaryMM}R Documentation

Comparing Two Models: ANOVA

Description

Compute analysis of variance tables for two fitted model objects

Usage

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

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

Value

ANOVA table

Examples


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)

[Package binaryMM version 0.1.1 Index]