Residuals for an earth model
Residuals of an earth
model.
## S3 method for class 'earth' residuals(object = stop("no 'object' argument"), type = NULL, warn = TRUE, ...)
object |
An |
type |
One of: |
warn |
This function gives warnings when the results are not what you may expect.
Use |
... |
Unused, but provided for generic/method consistency. |
The residual values (will be a matrix for multiple response models).
data(etitanic) earth.mod <- earth(pclass ~ ., data=etitanic, glm=list(family=binomial)) head(resid(earth.mod, warn=FALSE)) # earth residuals, a column for each response head(resid(earth.mod, type="response")) # GLM response resids, a column for each response
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.