Learn R Programming

robust (version 0.3-19)

methods.glmRob: Methods for glmRob Generic Functions

Description

Accessor methods for the coefficients, deviance, formula, labels, model frame, model matrix, residuals, and weights in an lmRob object.

Usage

## S3 method for class 'glmRob':
coef(object, ...)
## S3 method for class 'glmRob':
family(object, ...)
## S3 method for class 'glmRob':
labels(object, ...)
## S3 method for class 'glmRob':
model.frame(formula, ...)
## S3 method for class 'glmRob':
model.matrix(object, ...)
## S3 method for class 'glmRob':
residuals(object, type = c("deviance", "pearson", "working", "response"), ...)

Arguments

formula
an lmRob object.
object
an lmRob object.
type
a character string specifying the type of residuals which should be returned.
...
additional arguments required by the generic functions.

Value

  • A vector, matrix or formula containing the requested component of the glmRob object.

See Also

lmRob, lmRob.object.

Examples

Run this code
data(breslow.dat)
bres.rob <- glmRob(sumY ~ Age10 + Base4 * Trt, family = poisson(), data = breslow.dat) 
coef(bres.rob) 
family(bres.rob) 
labels(bres.rob) 
model.frame(bres.rob) 
model.matrix(bres.rob) 
residuals(bres.rob)

Run the code above in your browser using DataLab