getStatsAllLM: Function that runs Linear Models for all analytes

View source: R/internalfunctions.R

getStatsAllLMR Documentation

Function that runs Linear Models for all analytes

Description

Function that runs Linear Models for all analytes

Usage

getStatsAllLM(
  outcome,
  independentVariable,
  type1,
  type2,
  type,
  covar,
  covarMatrix,
  continuous,
  save.covar.pvals,
  remove.tri = FALSE,
  suppressWarnings = FALSE
)

Arguments

outcome

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

independentVariable

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

type1

Analyte type 1 dataset

type2

Analyte type 2 dataset

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

covarMatrix

covariate matrix

continuous

indicate whether data is discrete (FALSE) or continuous (TRUE)

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.

remove.tri

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

suppressWarnings

whether or not to suppress warnings

Value

list of matrices (interaction.pvalues, interaction.adj.pvalues, interaction.coefficients)


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