| PomaLMM | R Documentation | 
PomaLMM performs linear mixed models on a SummarizedExperiment object.
PomaLMM(data, x = NULL, y = NULL, adjust = "fdr", clean_plot = FALSE)
data | 
 A   | 
x | 
 Character vector. Indicates the names of   | 
y | 
 Character vector. Indicates the names of dependent variables. If it's NULL (default), all features will be used.  | 
adjust | 
 Character. Multiple comparisons correction method to adjust p-values. Available options are: "fdr" (false discovery rate), "holm", "hochberg", "hommel", "bonferroni", "BH" (Benjamini-Hochberg), and "BY" (Benjamini-Yekutieli).  | 
clean_plot | 
 Logical. Indicates if remove intercept and linear mixed model residues boxplots from the plot. Defasult is FALSE.  | 
A list with results including plots and tables. Table values indicate the percentage variance explained per variable.
Pol Castellano-Escuder
data <- POMA::st000284 %>% # Example SummarizedExperiment object included in POMA
  PomaImpute() %>% 
  PomaNorm()
## Output is a list with objects `lm_table` (tibble) and `regression_plot` (ggplot2 object)
## Perform linear mixed model with all features
#data %>%
#  PomaLMM()
#
## Perform linear mixed model with two features
#data %>% 
#  PomaLMM(y = c("x1_methyladenosine", "x1_methylhistamine"))
#
## Perform linear mixed model with one random effect
#data %>% 
#  PomaLMM(x = "smoking_condition")
#
## Perform linear mixed model with two random effects and two features
#data %>% 
#  PomaLMM(x = c("smoking_condition", "gender"),
#          y = c("x1_methyladenosine", "x1_methylhistamine"))
#
## Perform linear mixed model with no random effects and two features, therefore, a linear model will be fitted
#data %>% 
#  PomaLMM(x = "age_at_consent", # Numerical, i.e., fixed effect
#          y = c("x1_methyladenosine", "x1_methylhistamine"))
#
## Perform linear mixed model with no random effects and all features, therefore, a linear model will be fitted
#data %>% 
#  PomaLMM(x = "age_at_consent") # Numerical i.e., fixed effect
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.