powered by
A simple utility function that converts p-values into the customary significance stars.
stars.pval(x)
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.
***
**
*
.
a numeric vector of non-negative p-values
Stephanie Evert (https://purl.org/stephanie.evert)
stars.pval(c(0, .007, .01, .04, .1))
Run the code above in your browser using DataLab