Description Usage Arguments Details Value Note Author(s)
Replace expression levels by the residuals of regression analysis in which predictor of interest is not in the regression model. The purpose of this function is to remove potential confounding factors.
1 | obtainResi(es, fmla)
|
es |
An |
fmla |
A formula object that specifies the covariates of the linear
regression model. The variable of interest should not be
included. No response variable should be specified in |
To remove confounding effects, we can replace the expression level by
the residuals
of a linear regression model with
response variable the expression level and covariates the potential
confounders. The functions lmFit
and eBayes
will
be used to obtain regression coefficients.
An ExpressionSet object with expression levels replaced by residuals of linear regression analysis.
The number of arrays of the returned ExpressionSet object might be smaller than that of the original ExpressionSet object, due to missing values in covariates.
Jarrett Morrow remdj@channing.harvard.edu, Weiliang Qiu Weiliang.Qiu@gmail.com, Wenqing He whe@stats.uwo.ca, Xiaogang Wang stevenw@mathstat.yorku.ca, Ross Lazarus ross.lazarus@channing.harvard.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.