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, ...)

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

1
2
3
4
5
6
7
8
9
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))

regr0 documentation built on May 2, 2019, 4:52 p.m.

Related to residuals.regr in regr0...