fpval | R Documentation |
Format p-values
fpval( pval, digits = 3, eps = 0.001, alpha = 0.05, star.symbol = "*", html = FALSE, unicode.le = FALSE )
pval |
A numeric vector of p-values. |
digits |
The number of significant digits to retain. |
eps |
A numeric value. Under this threshold, rather than showing the p-value itself, show "< 1e-X" where X is the largest integer satisfying this relationship. |
alpha |
The significance level. |
star.symbol |
A character to display next to those p-values that are
statistically significant (i.e., less then |
html |
A logical flag indicating whether to return HTML code or plain text. |
unicode.le |
A logical flag indicating whether to use unicode
symbol U+2264
for "less-than-or-equal-to" (only applies when |
A character vector of the same length as pval
.
base::format.pval
x <- c(1, 0.5, 0.05, 0.049, 0.01, 0.001, 0.0001, 0.00001) fpval(x, html=FALSE, unicode.le=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.