PomaLM: Linear Models

View source: R/PomaLM.R

PomaLMR Documentation

Linear Models

Description

PomaLM performs a linear model on a SummarizedExperiment object.

Usage

PomaLM(data, x = NULL, y = NULL, adjust = "fdr")

Arguments

data

A SummarizedExperiment object.

x

Character vector. Indicates the names of independent variables. If it's NULL (default), all features will be used.

y

Character. Indicates the name of colData numeric columns to be used as dependent variable. If it's set to NULL, the first numeric variable in colData will be used as the dependent variable.

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).

Value

A list with results including plots and tables.

Author(s)

Pol Castellano-Escuder

Examples

data("st000284")

# Perform linear model with all features
st000284 %>% 
PomaLM()

# Perform linear model with two features
st000284 %>% 
PomaLM(x = c("x1_methyladenosine", "x2_deoxyuridine"))

pcastellanoescuder/POMA documentation built on March 15, 2024, 10:08 p.m.