Returns the residuals of a linear model of class 'mvgls'.
# S3 method for mvgls
residuals(object, type, ...)
an object of class 'mvgls' obtained from a mvgls
fit.
an optional character string specifying the type of residuals to be used. To match conventions used in the nlme package: if "response
", the "raw" residuals (observed-fitted) are used; else, if "normalized", the normalized residuals (the residuals pre-multiplied by the inverse square-root factor of the estimated (between observations) covariance matrix) are used. Note however that there are still between variables correlations with both types.
other arguments for this generic function (not used).
A matrix with the residuals for the linear model fitted by mvgls
.