pFormat | R Documentation |
Format p-values for use in LaTeX
pFormat(
p,
lev = c(0.001, 0.01, 0.05),
asterisks = FALSE,
ps = TRUE,
digits = NULL
)
p |
numeric vector of p-values |
lev |
vector of threshold values |
asterisks |
logical, alternatively return asterisks at thresholds |
ps |
logical, if TRUE return |
digits |
optional, number of decimal places to round p values to if not lower than any critical threshold |
character vector
pFormat(0.03)
pFormat(c(0.06,0.05,0.005))
pFormat(0.02, ps = FALSE)
pFormat(0.02, asterisks = TRUE)
pFormat(0.55, digits = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.