linearRegression: Linear regression

linearRegressionR Documentation

Linear regression

Description

Linear regression

Usage

linearRegression(
  x,
  cls = "class",
  pAdjust = "bonferroni",
  returnModels = FALSE
)

## S4 method for signature 'AnalysisData'
linearRegression(
  x,
  cls = "class",
  pAdjust = "bonferroni",
  returnModels = FALSE
)

Arguments

x

S4 object of class AnalysisData

cls

vector of sample information column names to regress

pAdjust

p value adjustment method

returnModels

should models be returned

Value

An S4 object of class Univariate.

Examples

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)

jasenfinch/metabolyseR documentation built on Sept. 18, 2023, 1:25 a.m.