makeLMFormula: String linear model formula suitable

Description Usage Arguments Details Value Examples

View source: R/EigenMS.R

Description

Makes a string linear model formula suitable for the right hand side of the equasion passed into lm()

Usage

1
makeLMFormula(eff, var_name = "")

Arguments

eff

treatment group ordering for all samples being anlysed. Single factor with 2+ teatment groups. Used to generate formula and contrasts for lm().

var_name

string variable name to use in the formula

Details

eig_norm1 and eig_norm2 Here we incorporate the model matrix from EigenMS normalization to find the significant trends in the matrix of residuals.

Value

data structure with linea model formula and contrasts

lm.formula

Lienar model formula suitable for right hand side of ' ~' in lm(), ~ is not included int eh formula

lm.params

contrasts for lm(), here sum-to-zero constraint only

Examples

1
2
grps = as.factor(c('CG', 'CG', 'CG', 'mCG', 'mCG', 'mCG'))
makeLMFormula(grps, 'TREATS')

ProteoMM documentation built on Nov. 8, 2020, 5:57 p.m.