getResCov: Utility Function for RRPP

View source: R/RRPP.utils.r

getResCovR Documentation

Utility Function for RRPP

Description

A function mostly for internal processing but can be used to extract the residual covariance matrix. This matrix is the residual covariance matrix, not the model covariance matrix used for estimation (see getModelCov). Options for averaging over degrees of freedom or number of observations, plus standardization, are also available.

Usage

getResCov(fit, useDf = TRUE, standardize = FALSE)

Arguments

fit

Object from lm.rrpp

useDf

Logical value for whether the degrees of freedom from the linear model fit should be used (if TRUE), as opposed to the number of observations (if FALSE).

standardize

Logical value for whether residuals should be standarized. If TRUE, a correlation matrix is produced.

Author(s)

Michael Collyer


RRPP documentation built on Aug. 16, 2023, 1:06 a.m.