Format means and confidence intervals in APA style
Arguments
- x
A numeric vector
- bootCI
Use bootstrapped CI (TRUE) or normal approximation (FALSE)
- addCI
Add "95% CI =" prefix
- digits
Number of digits to use
- transform.means
An optional function to transform the means and CI to another scale
- ...
Other arguments passed to format_results
Examples
x <- runif(100, 0, 50)
apa_mean_conf(x)
#> [1] "_M_ = 25.40 [22.66, 28.16]"
apa_mean_conf(x, bootCI = FALSE) # Normal approximation instead of bootstrap
#> [1] "_M_ = 25.40 [22.43, 28.36]"