Learn R Programming

CorDiff (version 1.0)

fastresid: Residulize the effect of y away from x

Description

This function is to prepare for the next Q calculation. Basically, Q does not like phenotype y to add complication. Therefore we use this function to get rid of the impact of y.

Usage

fastresid(X, y)

Arguments

X

The data matrix, each column is for each sample and each row is for different feature.

y

Experimental condition/phenotypes, it can be discrete or continuous

Value

Xresid

The new x after residulizing y

References

Set-based differential covariance testing for genomics