This is a method for the function
anova() for objects
inheriting from class
for the general behaviour of this function.
When called with a single
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
in the order they appear in
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.