fastresid {CorDiff}R Documentation

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

Author(s)

Yi-Hui Zhou

References

Set-based differential covariance testing for genomics


[Package CorDiff version 1.0 Index]