residuals.earth {earth} | R Documentation |
Residuals for an earth
model.
## S3 method for class 'earth' residuals(object = stop("no 'object' arg"), type = NULL, warn = TRUE, ...) ## S3 method for class 'earth' resid(object = stop("no 'object' arg"), 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).
earth
residuals
resid
identical to residuals
data(etitanic) a <- earth(pclass ~ ., data=etitanic, glm=list(family=binomial)) head(resid(a, warn=FALSE)) # earth residuals, a column for each response head(resid(a, type="earth")) # same head(resid(a, type="deviance")) # GLM deviance residuals, a column for each response