Learn R Programming

cmprskcoxmsm (version 0.2.1)

pvalFormat: Adjust p-value format

Description

Formats p-values for reports, can report adjusted pvalues

Usage

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

Run this code
# NOT RUN {
p <- 0.002354
print(p.1 <- pvalFormat(p))
# }

Run the code above in your browser using DataLab