envelope_residual {asympDiag} | R Documentation |
Recommended Residuals for Envelope Plots
Description
This function returns a function that computes residuals for envelope plots. These residuals are typically absolute values to be compared against the half-normal distribution.
Usage
envelope_residual(object, ...)
## Default S3 method:
envelope_residual(object, ...)
## S3 method for class 'glm'
envelope_residual(object, ...)
## S3 method for class 'lm'
envelope_residual(object, ...)
Arguments
object |
An object for which model residuals can be extracted. |
... |
Additional arguments passed to the residual function. |
Details
For objects of class glm
, the default residuals are:
Deviance residuals, except for
poisson
andbinomial
families.For
poisson
andbinomial
families, the residuals arerstudent()
, for the case deletion residual.
For objects of class lm
, the default residuals are also rstudent()
.
For other classes, the default is stats::residuals()
, meaning no specialized recommendation is currently provided.
Value
A function that computes residuals from an object
[Package asympDiag version 0.3.1 Index]