Learn R Programming

mvMORPH (version 1.1.0)

residuals.mvgls: Extract gls model residuals

Description

Returns the residuals of a linear model of class 'mvgls'.

Usage

# S3 method for mvgls
residuals(object, type, ...)

Arguments

object

an object of class 'mvgls' obtained from a mvgls fit.

type

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).

Value

A matrix with the residuals for the linear model fitted by mvgls.

See Also

vcov.mvgls residuals.mvgls coef.mvgls mvgls