Learn R Programming

ordinalCont (version 2.0.2)

anova.ocm: Anova method for Continuous Ordinal Fits

Description

Comparison of continuous ordinal models using likelihood ratio tests.

Usage

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

Arguments

object

an object of class ocm

...

one or more additional ocm objects

Value

The method returns an object of class anova.ocm 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

Details

Likelihood ratio testing of nested models is performed.

Examples

Run this code
# NOT RUN {
fit.overall  <- ocm(overall  ~ cycleno + bsa + treatment, data=ANZ0001.sub, scale=c(0,100))
anova(fit.overall, update(fit.overall, .~. + age))
# }

Run the code above in your browser using DataLab