linearRegression | R Documentation |
Linear regression
linearRegression(
x,
cls = "class",
pAdjust = "bonferroni",
returnModels = FALSE
)
## S4 method for signature 'AnalysisData'
linearRegression(
x,
cls = "class",
pAdjust = "bonferroni",
returnModels = FALSE
)
x |
S4 object of class |
cls |
vector of sample information column names to regress |
pAdjust |
p value adjustment method |
returnModels |
should models be returned |
An S4 object of class Univariate
.
library(metaboData)
d <- analysisData(abr1$neg[,200:300],abr1$fact)
## Perform linear regression
lr_analysis <- linearRegression(d,cls = 'injorder')
## Extract significant features
explanatoryFeatures(lr_analysis)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.