stars.pval | R Documentation |
A simple utility function that converts p-values into the customary significance stars.
stars.pval(x)
x |
a numeric vector of non-negative p-values |
A character vector with significance stars corresponding to the p-values.
Significance levels are ***
(p < .001
), **
(p < .01
), *
(p < .05
) and .
(p < .1
). For non-significant p-values (p \ge .1
), an empty string is returned.
Stephanie Evert (https://purl.org/stephanie.evert)
stars.pval(c(0, .007, .01, .04, .1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.