Learn R Programming

specmine (version 3.1.6)

linreg_all_vars: Linear Regression

Description

Performs linear regression analysis over the dataset with the selected metadata's variables.

Usage

linreg_all_vars(dataset, metadata.vars, combination)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

metadata.vars

metadata variables to use in linear regression. For example, c('variable1','variable2').

combination

a formula specifying the model. For example, 'variable1+variable2'.

Value

Returns a list where each element is the linear regression result of a variable on the dataset.