Extension of mgcv::residuals.gam
. Returns residuals for a fitted GAM model object.
Pearson, deviance, working and response residuals are available as in the method from
mgcv
, but this version also provides residual types "tunif" and "tnormal". The former are
obtained using the cdf of the response distribution (if available). The latter are obtained
by further transforming the uniform residuals using the quantile function (i.e. the inverse
cdf) of a standard normal variable.
# S3 method for gamViz residuals(object, type = "deviance", ...)
object | an object of class |
---|---|
type | the type of residuals wanted. If should be one of "deviance", "pearson", "scaled.pearson", "working", "response", "tunif" or "tnormal". Not all are available for each family. |
... | further arguments passed to mgcv::residuals.gam. |
See also mgcv::residuals.gam for details.