pvalFormat: Adjust p-value format

Description Usage Arguments Value Examples

View source: R/table_func.R

Description

Formats p-values for reports, can report adjusted pvalues

Usage

1
pvalFormat(p.values, method = 'none', replace = FALSE)

Arguments

p.values

p-value

method

pvalue adjustment, passed to p.adjust.methods

replace

if TRUE, replaces p-values with their adjusted value

Value

Return the formatted p-value: round the p-value, assign the significance sign to the p-value based on the significant level. Can be used directly to the LaTex report.

Examples

1
2
p <- 0.002354
print(p.1 <- pvalFormat(p))

cmprskcoxmsm documentation built on Sept. 5, 2021, 5:10 p.m.