Calculates prediction residuals (observed minus fitted values) or
nonconformity scores for an spconform object given true responses.
# S3 method for spconform
residuals(object, y_true, type = c("response", "abs"), ...)A numeric vector of residuals.
An object of class "spconform".
Numeric vector of true observed responses at prediction locations.
Character string indicating residual type: "response"
(raw residuals \(y - \hat{y}\)) or "abs" (absolute nonconformity scores
\(|y - \hat{y}|\)).
Further arguments passed to or from other methods.