powered by
Provides a likelihood ratio test for comparing two or more serp objects. This does not currently support model(s) with penalized slope.
serp
# S3 method for serp anova(object, ..., test = c("Chisq", "none"))
the respective model aliases.
type of slope fitted, which may be any of, unparallel, parallel, or partial slope.
the no of parameters in the model.
the akaike information criterion.
the realized log-likelihood.
the different pair(s) of test(s) conducted.
the computed Likelihood ratio statistic.
the degree of freedom.
the p-value of test statitic.
An object of class serp.
additional arguments.
type of test to be conducted.
An ANOVA table with the following components on display:
serp, confint.serp, vcov.serp
confint.serp
vcov.serp
library(serp) m1 <- serp(rating ~ temp + contact, slope = "parallel", link = "logit", data = wine) m2 <- update(m1, ~ contact) anova(m1, m2)
Run the code above in your browser using DataLab