The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

apastats2

Utilities for APA-style reporting of statistical results, plus helper functions for confidence intervals, summaries, and plotting.

Install

install.packages("remotes")
remotes::install_github("achetverikov/apastats")

Quick Example

library(apastats2)

t_res <- t.test(rnorm(20, mean = 10, sd = 2))
apa(t_res)

Example Output

How the results look when the Markdown strings are rendered in R Markdown or Quarto:

apastats2 output for a t-test, correlation, chi-square test, ANOVA, mixed model, Bayes factor, and mean with confidence interval, as rendered text

Source: example/readme_output.Rmd (built-in R datasets).

Main Function Families

Documentation

Notes

Some advanced methods rely on suggested packages (for example ez, lme4, and emmeans).

Transition from apastats to apastats2

If you are migrating old scripts:

  1. Install/load the new package:
remotes::install_github("achetverikov/apastats")
library(apastats2)
  1. Prefer apa() and apa_* functions in new code.
  2. Legacy describe.* functions still work for now, but are deprecated and planned for removal.
  3. Legacy dot-named utility functions are also deprecated; use snake_case equivalents (see mapping below).

In most cases, replacing library(apastats) with library(apastats2) and then progressively updating deprecated calls is enough.

Deprecated Mappings

Legacy describe.* wrappers are deprecated and will be removed in the next release. Use the following replacements:

Additional deprecated compatibility mapping:

For utility helpers, snake_case aliases are now available and dot-named forms are legacy:

Install legacy apastats

If you need the pre-apastats2 code, install from the legacy branch/tag:

remotes::install_github("achetverikov/apastats@legacy-apastats")

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.