Function that runs Linear Models for all analytes
getStatsAllLM(
outcome,
independentVariable,
type1,
type2,
type,
covar,
covarMatrix,
continuous,
save.covar.pvals,
remove.tri = FALSE,
suppressWarnings = FALSE
)list of matrices (interaction.pvalues, interaction.adj.pvalues, interaction.coefficients)
'1' or '2' must be set as outcome/independent variable
'1' or '2' must be set as outcome/independent variable
Analyte type 1 dataset
Analyte type 2 dataset
vector of sample type (by default, it will be used in the interaction term). Only 2 categories are currently supported.
vector of additional vectors to consider
covariate matrix
indicate whether data is discrete (FALSE) or continuous (TRUE)
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.
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)
whether or not to suppress warnings