View source: R/internalfunctions.R
getStatsAllLM | R Documentation |
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 )
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 |
list of matrices (interaction.pvalues, interaction.adj.pvalues, interaction.coefficients)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.