residuals.regr {regr0}R Documentation

Residuals for regr objects

Description

Calculates Residuals for regr objects. This is a kind of generic function which calls further mehtods according to the secondary class of the object

Usage

## S3 method for class 'regr'
residuals(object, type = NULL, ...)

Arguments

object

an object of class regr

type

type of residual, used by some methods that will be called

...

argiments passed to the methods that will be called

Value

vector or matrix of residuals

Author(s)

Werner A. Stahel

See Also

residuals.polr, residuals.coxph, residuals.survreg

Examples

data(d.blast)
r.blast <-
  regr(logst(tremor)~location+log10(distance)+log10(charge), data=d.blast)
str(residuals(r.blast))

data(housing, package="MASS")
t.r <- regr(Sat ~ Infl + Type + Cont, weights = housing$Freq,
            data = housing)
showd(residuals(t.r))

[Package regr0 version 1.0-5 Index]