Description Usage Arguments Value Examples
View source: R/runDiffMeanAnalysis.R
Run differential mean analysis using t-moderated statistics. This function relies
on lmFit
from limma package.
1 2 3 4 5 6 7 8 9 10 |
set |
Matrix, |
model |
Model matrix or formula to get model matrix from |
weights |
weights used in the lmFit model. |
method |
String indicating the method used in the regression: "ls" or "robust". (Default: "ls") |
max_iterations |
Numeric indicating the maximum number of iterations done in the robust method. |
betas |
If |
resultSet |
Should results be encapsulated in a |
warnings |
Should warnings be displayed? (Default:TRUE) |
MArrayLM
or resultSet
with the result of the differential
mean analysis.
1 2 3 4 5 6 | if (require(minfiData)){
mvalues <- getM(MsetEx)[1:100, ]
model <- model.matrix(~ Sample_Group, data = pData(MsetEx))
res <- runDiffMeanAnalysis(mvalues, model, method = "ls")
res
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.