RunLM: Function that runs linear models and returns interaction...

View source: R/internalfunctions.R

RunLMR Documentation

Function that runs linear models and returns interaction p-values.

Description

Function that runs linear models and returns interaction p-values.

Usage

RunLM(
  incommon,
  outcome = 1,
  independentVariable = 2,
  type = "",
  covar = c(),
  continuous = FALSE,
  save.covar.pvals = FALSE,
  keep.highest.pval = FALSE,
  suppressWarnings = FALSE
)

Arguments

incommon

Named list (output of FilterData()) with analyte levels, and associated meta-data

outcome

'1' or '2' must be set as outcome/independent variable (default is '1')

independentVariable

'1' or '2' must be set as outcome/independent variable

type

vector of sample type (by default, it will be used in the interaction term). Only 2 categories are currently supported.

covar

vector of additional vectors to consider

continuous

boolean to indicate whether the data is continuous or discrete

save.covar.pvals

boolean to indicate whether or not to save the p-values of all covariates, which can be analyzed later but will also lengthen computation time. (rather than interaction terms).

keep.highest.pval

boolean to indicate whether or not to remove the pair with the highest p-value across two duplicate models (e.g. m1~m2 and m2~m1)

suppressWarnings

whether or not to suppress warnings.


IntLIM documentation built on Aug. 22, 2022, 5:05 p.m.