signif_sym | R Documentation |
Any NAs in the input are always transformed to "". Probabilities outside range <0,1> raise an error.
signif_sym(x, max_asterisks = 5, bonferoni = 1, include_dot = T, ns_sym = " ")
x |
A numeric vector of input probabilities |
max_asterisks |
Number of asterisks (*) for the most significant results, default is 5. Cannot be smaller than 2. Set to 3 for APA/NEJM standards. |
bonferoni |
Number of tests in a family of tests when applying the Bonferroni correction for multiple comparisons problem. Is 1 by default which is same as not applying any correction. Use it only if the passed p-values are not corrected already. |
include_dot |
Logical, default TRUE, should the dot symbol be used for borderline significance that is between 5% and 10%? |
ns_sym |
Character (default ' '), the symbol used for the non-significant results. Set to 'ns' APA/NEJM standards. |
A character vector with significance symbols.
Other publishing-formatting:
formatOR()
,
formatP()
x <- 3e-4 signif_sym(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.