Compute model residuals from a mars object with optional scaling.

# S3 method for class 'mars'
residuals(
  object,
  type = c("raw", "pearson", "studentized", "whitened", "standardized"),
  ...
)

Arguments

object

A fitted mars object.

type

Residual type. One of "raw", "pearson", "studentized", "whitened", or "standardized".

...

Not used.

Value

A numeric vector of residuals.