residuals.mvgls: Extract gls (or ols) model residuals

View source: R/classes_methods.r

residualsR Documentation

Extract gls (or ols) model residuals

Description

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

Usage


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

Arguments

object

an object of class 'mvgls' obtained from a mvgls or mvols 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 is 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 or mvols.

Author(s)

J. Clavel

See Also

vcov.mvgls residuals.mvgls coef.mvgls mvgls mvols


mvMORPH documentation built on March 31, 2023, 6:25 p.m.