Description
Usage
Arguments
Value
See Also
Examples
View source: R/residuals.earth.R
Residuals of an earth
model.
 ## S3 method for class 'earth'
(object = ("no 'object' argument"),
= , warn = , )

object 
An earth object.
This is the only required argument.

type 
One of:
"earth" (default) Residuals from the lm fit on bx .
"response"
Residuals as above, but for earthglm models
return the glm response residuals.
"standardize" Residuals divided by se * sqrt(1  h_ii) .
See the standardize argument of plot.earth .
"delever" Residuals divided by sqrt(1  h_ii) .
See the delever argument of plot.earth .
The following options are for earthglm models.
They return the GLM residuals (from the glm fit on bx ).
See residuals.glm for details:
"deviance"
"pearson"
"working"
"partial"
The following options for earthglm models are redundant.
They are provided for compatibility with older versions of earth or other functions:
"glm.response" same as "response"
"glm.deviance" same as "deviance"
"glm.pearson" same as "pearson"
"glm.working" same as "working"
"glm.partial" same as "partial"

warn 
This function gives warnings when the results are not what you may expect.
Use warn=FALSE to turn of just these warnings.

... 
Unused, but provided for generic/method consistency.

The residual values (will be a matrix for multiple response models).
earth
residuals
resid
identical to residuals
 ()
earth.mod < (pclass ~ ., =, =(=))
((earth.mod, warn=)) # earth residuals, a column for each response
((earth.mod, ="response")) # GLM response resids, a column for each response

earth documentation built on Oct. 23, 2020, 5:08 p.m.