Learn R Programming

robust (version 0.7-5)

anova.glmRob: ANOVA for Robust Generalized Linear Model Fits

Description

Compute an analysis of variance table for one or more robust generalized linear model fits.

Usage

# S3 method for glmRob
anova(object, ..., test = c("none", "Chisq", "F", "Cp"))
# S3 method for glmRoblist
anova(object, ..., test = c("none", "Chisq", "F", "Cp"))

Value

an anova object.

Arguments

object

a glmRob object.

...

additional glmRob objects.

test

a character string specifying the test statistic to be used. Can be one of "F", "Chisq", "Cp" or "none" for no test.

See Also

glmRob, anova, anova.glmRoblist.

Examples

Run this code
data(breslow.dat)

bres.int <- glmRob(sumY ~ Age10 + Base4*Trt, family = poisson(), data = breslow.dat)
anova(bres.int)

bres.main <- glmRob(sumY ~ Age10 + Base4 + Trt, family = poisson(), data = breslow.dat)
anova(bres.main, bres.int)

Run the code above in your browser using DataLab