Learn R Programming

robust (version 0.3-0)

methods.lmRob: Methods for lmRob 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 'lmRob':
coef(object, ...)
## S3 method for class 'lmRob':
deviance(object, ...)
## S3 method for class 'lmRob':
formula(x, ...)
## S3 method for class 'lmRob':
labels(object, ...)
## S3 method for class 'lmRob':
model.frame(formula, ...)
## S3 method for class 'lmRob':
model.matrix(object, ...)
## S3 method for class 'lmRob':
residuals(object, ...)
## S3 method for class 'lmRob':
weights(object, ...)

Arguments

formula
an lmRob object.
object
an lmRob object.
x
an lmRob object.
...
additional arguments required by the generic functions.

Value

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

See Also

lmRob, lmRob.object.

Examples

Run this code
data(stack.dat)
stack.rob <- lmRob(Loss ~ ., data = stack.dat) 
coef(stack.rob) 
deviance(stack.rob) 
formula(stack.rob) 
labels(stack.rob) 
model.frame(stack.rob) 
model.matrix(stack.rob) 
residuals(stack.rob) 
weights(stack.rob)

Run the code above in your browser using DataLab