residuals.regr {regr0} | R Documentation |
regr
objects
Calculates Residuals for regr
objects.
This is a kind of generic function which calls further mehtods
according to the secondary class of the object
## S3 method for class 'regr' residuals(object, type = NULL, ...)
object |
an object of class |
type |
type of residual, used by some methods that will be called |
... |
argiments passed to the methods that will be called |
vector or matrix of residuals
Werner A. Stahel
residuals.polr
, residuals.coxph
,
residuals.survreg
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))