gam model
object. Pearson, deviance, working and response residuals are
available.
"residuals"(object, type = "deviance",...)gam fitted model object. "deviance", "pearson","scaled.pearson",
"working", or "response". Families can supply their own residual function, which is used in place of the standard
function if present, (e.g. cox.ph).
gam