Description Usage Arguments Value P values Examples
APA_p
takes a number (numeric or character) and returns it with appropriate APA formatting, with options for print-friendly labelling.
1 |
stat |
A number, supplied as a numeric or character value. |
digit |
How many significance digits? Default = Passed to |
not_range |
Should full p values be returned instead of significance ranges? Default is |
rmd_format |
Should p value be return with a Latex/rMarkdown-friendly label and equal sign prepended (e.g., "\\textitp $=$ .012").
Default is |
stat
as a string with APA formatting and/or other options applied.
For p values less than .001, APA recommends using p < .001. Otherwise, full p values should be used, rounded to two or three decimal places, and without a leading zero (e.g., p = .003) when reporting p values in text, or as values in a range (for tables, etc.; e.g., p < .05). See snip
for details about leading and trailing zeros.
1 | # lapply(runif(n = 100, min = 0.00003, max = .99), APA_p, rmd_format = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.