Format p-values
This is a function that format p-values for publication.
pv(p, style = 1)
p |
A vector of p-values |
style |
By default (1), formatting according to APA style guide version 6 |
(1) APA: 2 digits of significance except if p is <0.05. If p < 0.05 we use 3 digits of significance except if p < 0.001 when we print "<0.001".
(2) Other: 4 digits of significance except if p < 0.0001 when we print "<0.0001".
returns a character vector of formatted p-value.
Charles-Édouard Giguère
p <- c(0.1563,0.0122,0.00001) pv(p)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.