residuals.uRegress {rigr} | R Documentation |
Extract Residuals from uRegress
objects
Description
Extracts residuals (unstandardized, standardized, studentized, or jackknife)
from uRegress
objects.
Usage
## S3 method for class 'uRegress'
residuals(object, type = "", ...)
Arguments
object |
an object of class |
type |
denotes the type of residuals to return. Default value is
|
... |
other arguments |
Details
Relies on
functionality from the stats
package to return residuals from the
uRegress
object. "studentized"
residuals are computed as
internally studentized residuals, while "jackknife"
computes the
externally studentized residuals.
Value
Returns the type of residuals requested.
See Also
Examples
# Reading in a dataset
data(mri)
# Create a uRegress object, regressing ldl on age
ldlReg <- regress("mean", age~ldl, data=mri)
# Get the studentized residuals
residuals(ldlReg, "studentized")
# Get the jackknifed residuals
residuals(ldlReg, "jackknife")
[Package rigr version 1.0.4 Index]