Description Usage Arguments Value Examples
Formatter for p-values, adding a symbol "<" for very small p-values and, optionally, significance stars
1 2 3 4 | pval(x, accuracy = 0.001, stars = FALSE, three = 0.001, two = 0.01,
one = 0.05)
signifStars(x, three = 0.001, two = 0.01, one = 0.05)
|
x |
A numeric vector of p-values |
accuracy |
Number to round to [Default = 0.001] |
stars |
If |
three |
Number indicating level below which to display three stars '***' [Default = 0.001] |
two |
Number indicating level below which to display two stars '**' [Default = 0.01] |
one |
Number indicating level below which to display one star '*' [Default = 0.05] |
A character vector
1 2 3 4 5 6 | p <- c(.50, 0.12, .09, .045, .011, .009, .00002, NA)
pval(p)
pval(p, accuracy = .01)
pval(p, stars = TRUE)
signifStars(p)
signifStars(p, one = .15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.