adjust_data: Adjust p-value by Bonferroni or FDR

View source: R/adjust_data.R

adjust_dataR Documentation

Adjust p-value by Bonferroni or FDR

Description

Update data with Bonferroni and FDR adjustment

Usage

adjust_data(cohort, cpval, bn = TRUE, fdr = TRUE, filename = NULL, N = 0)

Arguments

cohort

Dataframe with CpGs related data

cpval

String with p-value column name

bn

Boolean if TRUE appends bonferroni adjustment column

fdr

Boolean if TRUE appends FDR adjustment column

filename

Optional, filename to write results, if NULL no results are writed in a file

N

Optional, informative value to write to a file with other descriptive data related to significative p-values.

Value

Data frame with original data with bonferroni and fdr adjusted data sorted by p-value


isglobal-brge/EASIER documentation built on Sept. 25, 2024, 10:50 p.m.