View source: R/regress_diagnostics.R
residuals.uRegress | R Documentation |
uRegress
objectsExtracts residuals (unstandardized, standardized, studentized, or jackknife)
from uRegress
objects.
## S3 method for class 'uRegress'
residuals(object, type = "", ...)
object |
an object of class |
type |
denotes the type of residuals to return. Default value is
|
... |
other arguments |
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.
Returns the type of residuals requested.
regress
, rstudent
,
rstandard
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.