residuals.regr {regr} | 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, standardized = FALSE, ...)
object |
an object of class |
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 |
vector or matrix of residuals
Werner A. Stahel
residuals.regrpolr
, residuals.regrcoxph
,
residuals.regrsurvreg
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))