Learn R Programming

ordinalCont (version 0.4)

anova.ocmm: Anova method for Continuous Ordinal Mixed Model Fits

Description

Comparison of continuous ordinal mixed models using likelihood ratio tests

Usage

"anova"(object, ...)

Arguments

object
an ocmm object
...
one or more additional ocmm objects

Value

An object of class anova.ocmm and data.frame, reporting for each model, in hierarchical order:
no.par
number of parameters
AIC
Akaike information criterion
loglik
log-likelihood
LR.stat
likelihood ratio statistic
df
difference in the degrees of freedom in the models being compared
Pr(>Chisq)
p-value from the likelihood ratio test

Examples

Run this code
## Not run: 
# fit.overall.rnd  <- ocmm(overall  ~ cycleno + bsa + treatment + (1|randno), data=ANZ0001)
# anova(fit.overall.rnd, update(fit.overall.rnd, .~. + age))
# ## End(Not run)

Run the code above in your browser using DataLab