Skip to contents

Extract residuals from fitted model

Usage

# S3 method for class 'MARSassess'
residuals(object, vars, type = c("response", "pearson"), ...)

Arguments

object

MARSassess object returned by fit_MARS()

vars

Character vector to indicate which residuals will be calculated. Available choices from MARSdata object are: "Cinit_mfr", "Cobs_ymfr", "CAAobs_ymafr", "CALobs_ymlfr", "Iobs_ymi", "IAAobs_ymai", "IALobs_ymli", "SC_ymafrs"

type

Character, 'response' for the log(observed/predicted) values or 'pearson' for calculating Z-scores. Composition data always use 'pearson'.

...

Not used

Value

A named list based on vars argument.