Learn R Programming

SOUP (version 1.1)

.orthoX: Residualises the response variables w.r.t. the matrix of covariates like in the linear models, therefore projecting on the space $I - H$ where $H$ is the hat matrix of $X$

Description

Residualises the response variables w.r.t. the matrix of covariates like in the linear models, therefore projecting on the space $I - H$ where $H$ is the hat matrix of $X$

Usage

.orthoX(Y, X)

Arguments

Y
the matrix or data.frame of response variables
X
the matrix of covariates

Value

the residualised Y matrix