residuals.regr: Residuals for 'regr' objects

Description Usage Arguments Value Author(s) See Also Examples

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

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

Arguments

object

an object of class regr

type

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

standardized

logical: Should standardized residuals be calculated and returned?

...

argiments passed to the methods that will be called

Value

vector or matrix of residuals

Author(s)

Werner A. Stahel

See Also

residuals.regrpolr, residuals.regrcoxph, residuals.regrsurvreg

Examples

1
2
3
4
5
6
7
8
9
data(d.blast, package="plgraphics")
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))

regr documentation built on Oct. 22, 2019, 3:01 p.m.