Function that runs linear models and returns interaction p-values.
RunLM(
incommon,
outcome = 1,
independentVariable = 2,
type = "",
covar = c(),
continuous = FALSE,
save.covar.pvals = FALSE,
keep.highest.pval = FALSE,
suppressWarnings = FALSE
)Named list (output of FilterData()) with analyte levels, and associated meta-data
'1' or '2' must be set as outcome/independent variable (default is '1')
'1' or '2' must be set as outcome/independent variable
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
boolean to indicate whether the data is continuous or discrete
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).
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)
whether or not to suppress warnings.