View source: R/residuals.earth.R
residuals.earth | R Documentation |
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).
earth
residuals
resid
identical to residuals
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.