Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

anova.rsm

ANOVA Table for a RSM Object


Description

This is a method for the function anova() for objects inheriting from class rsm. See anova for the general behaviour of this function.

Usage

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

Details

When called with a single rsm object, anova.rsm may take a while to run, because it fully iterates a series of rsm models. The series is constructed by successively adding to the null model all the terms in object, taken in the order they appear in terms(object).

Note

For each term minus twice the log likelihood is returned instead of the residual sum of squares. The degrees of freedom change according to whether the scale parameter is known or not.

See Also

Examples

## Sea Level Data
data(venice)
attach(venice)
Year <- 1:51/51
c11 <- cos(2*pi*1:51/11) ; s11 <- sin(2*pi*1:51/11)
c19 <- cos(2*pi*1:51/18.62) ; s19 <- sin(2*pi*1:51/18.62)
venice.p <- rsm(sea ~ Year + I(Year^2) + c11 + s11 + c19 + s19, 
                family = extreme)
anova(venice.p)
##
venice.l <- rsm(sea ~ Year + I(Year^2), family = extreme)
anova(venice.p, venice.l)
##
detach()

## House Price Data
data(houses)
houses.rsm <- rsm(price ~ ., family = student(5), data = houses)
anova(houses.rsm)

marg

Approximate Marginal Inference for Regression-Scale Models

v1.2-2.1
GPL (>= 2) | file LICENCE
Authors
S original by Alessandra R. Brazzale <alessandra.brazzale@unipd.it>. R port by Alessandra R. Brazzale <alessandra.brazzale@unipd.it>, following earlier work by Douglas Bates.
Initial release
2014-03-31

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.