SkillAgentSearch skills...

Apa

Format output of statistical tests in R according to APA guidelines

Install / Use

/learn @dgromer/Apa
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

apa

apa's functions format output of statistical tests according to guidelines of the APA (American Psychological Association), ready to copy-and-paste into manuscripts.

The idea of such formatters was introduced in the schoRsch package. apa generalizes this idea by providing formatters for different output formats (text, Markdown, RMarkdown, HTML, LaTeX, LaTeX inline math, docx and R's plotmath syntax).

Currently available formatters are:

  • anova_apa()<sup>2</sup>
  • chisq_apa()
  • cor_apa()
  • t_apa()

Further miscellaneous functions:

  • apa(): A wrapper around the *_apa()-functions for use in inline code in RMarkdown documents.
  • cohens_d() / cohens_d_(): Calculate Cohen's d effect size (from raw data, t-test or statistical parameters). Also supports Hedge's g* and Glass's Δ.
  • t_test: A wrapper around t.test() that includes the original data in its return list (in order to calculate the effect size in cohens_d() and t_apa() directly from the data).

<sup>1</sup> pandoc is required for docx output and needs to be installed manually when not using RStudio (which ships pandoc).

<sup>2</sup> Supports input from aov(), ezANOVA() from the ez package and aov_ez() / aov_car() / aov_4() from the afex package.

Installation

The development version can be installed using:

# install.packages("devtools")
devtools::install_github("dgromer/apa")

Related approaches

View on GitHub
GitHub Stars29
CategoryDevelopment
Updated1mo ago
Forks2

Languages

R

Security Score

90/100

Audited on Feb 22, 2026

No findings