cleaningY: Regress out SVs or PCs

Description Usage Arguments Value Author(s)

View source: R/cleaningY.R

Description

Regress out surrogate variables or principal components

Usage

1
cleaningY(y, mod, P)

Arguments

y

The outcome

mod

A model matrix

P

The number of SVs or PCs to protect based on the column order. For example, P=2 would keep the intercept term and a case vs diagnosis term in a model that is ~ Dx + more covariates.

Value

An object of the same type as 'y' with the SVs/PCs regressed out.

Author(s)

Rafael Irizarry


LieberInstitute/jaffelab documentation built on Nov. 16, 2018, 4:20 p.m.