anova.serp: ANOVA method for a fitted serp object

Description Usage Arguments Details Value See Also Examples

Description

Provides a likelihood ratio test for comparing two or more serp objects. This does not currently support model(s) with penalized slope.

Usage

1
2
## S3 method for class 'serp'
anova(object, ..., test = c("Chisq", "none"))

Arguments

object

An object of class serp.

...

additional arguments.

test

type of test to be conducted.

Details

An ANOVA table with the following components on display:

Value

model

the respective model aliases.

slope

type of slope fitted, which may be any of, unparallel, parallel, or partial slope.

no.par

the no of parameters in the model.

AIC

the akaike information criterion.

logLik

the realized log-likelihood.

Test

the different pair(s) of test(s) conducted.

LR.stat

the computed Likelihood ratio statistic.

df

the degree of freedom.

Pr(chi)

the p-value of test statitic.

See Also

serp, confint.serp, vcov.serp, errorMetrics

Examples

1
2
3
4
5
library(serp)
m1 <- serp(rating ~ temp + contact, slope = "parallel", link = "logit",
           data = wine)
m2 <- update(m1, ~ contact)
anova(m1, m2)

serp documentation built on Nov. 8, 2021, 1:08 a.m.