Skip to content

statAPA

0.1.0Package record

APA 7th Edition Statistical Tables, Plots, and Multilevel Model Reports

0packages depend
2.3Kdownloads / year
51.3%test coverage
13/13flavors OK

Overview

About

Produces publication-ready statistical tables and figures formatted according to the 7th edition of the American Psychological Association (APA) style guidelines. Supports descriptive statistics, t-tests, z-tests, chi-square tests, Analysis of Variance (ANOVA), Analysis of Covariance (ANCOVA), two-way ANOVA with simple effects, Multivariate Analysis of Variance (MANOVA), robust and cluster-robust regression using Heteroscedasticity-Consistent (HC) standard errors, post-hoc pairwise comparisons, homoskedasticity and heteroscedasticity diagnostics including the Non-Constant Variance (NCV) test, proportion tests, and multilevel mixed-effects models with intraclass correlation coefficients (ICC) and model-comparison tables. Output can be directed to the console, Microsoft Word (via 'officer' and 'flextable'), or LaTeX. For APA style guidelines see American Psychological Association (2020, ISBN:978-1-4338-3216-1).

Changes in 0.1.0

Initial CRAN release

New functions

  • apa_anova() — Analysis of Variance (ANOVA) / Analysis of Covariance (ANCOVA) table (Type II/III) with eta-squared, partial eta-squared, or omega-squared effect sizes.
  • apa_ancova() — Dedicated Analysis of Covariance (ANCOVA) wrapper with covariate validation and covariate-adjusted marginal means.
  • apa_twoway_anova() — Two-way factorial Analysis of Variance (ANOVA) with main effects, interaction, and optional simple effects.
  • apa_manova() — Multivariate Analysis of Variance (MANOVA) reporting all four multivariate test statistics (Pillai, Wilks, Hotelling-Lawley, Roy).
  • apa_multilevel() — Multilevel (mixed-effects) model reporting with fixed effects, random effects, intraclass correlation coefficient (ICC), marginal/conditional R-squared, and likelihood ratio model comparison.
  • apa_t_test() — One-sample, two-sample (Welch and pooled), and paired t-tests with Hedges' g.
  • apa_z_test_mean() — z-test for means with known population standard deviation(s).
  • apa_chisq() — Chi-square test (goodness-of-fit or independence) with Cramer's V / phi.
  • apa_prop_test() — Proportion test (one- or two-sample) with risk difference (RD), risk ratio (RR), and odds ratio (OR).
  • apa_descriptives() — Descriptive statistics table, optionally stratified by a grouping variable.
Show all changes in 0.1.0Hide the rest of the changes in 0.1.0
  • apa_posthoc() — Post-hoc pairwise comparisons via estimated marginal means (emmeans).
  • apa_robust() — Regression table with Heteroscedasticity-Consistent (HC) or cluster-robust standard errors.
  • apa_hetero() — Heteroscedasticity diagnostics (Breusch-Pagan; Non-Constant Variance (NCV) test).
  • apa_homoskedasticity() — Homoskedasticity check (Breusch-Pagan, White, Levene/Brown-Forsythe).
  • apa_table() — General regression / multilevel model coefficient table (lm, glm, lmer, glmer).
  • apa_plot_descriptives() — Mean ± 95% CI plot by group.
  • apa_plot_regression() — Fitted-line plot with confidence ribbon.
  • apa_plot_anova() — Estimated marginal means plot for ANOVA/ANCOVA.
  • apa_plot_residuals() — Residuals vs Fitted and Normal Q-Q diagnostic plots.
  • apa_resid_plots() — Convenience wrapper printing both residual diagnostic plots.
  • apa_to_flextable() — Convert any statAPA result to an APA-styled flextable for Word/PowerPoint.
  • save_apa() — Save a ggplot figure with APA-friendly defaults (300 dpi, 6.5 × 4.5 in).
  • set_apa_style() — Set global output style options.
  • theme_apa() — APA-style ggplot2 theme.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-09
  • WARNING12 OK, 1 WARNING2026-09-04
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 3 earlier changesHide 3 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • WARNING12 OK, 1 WARNING2026-06-07
  • OK3 OK2026-04-17
Advisories

none known

Documentation

In release 0.1.0
READMEYes · 334 wordsVignettesYes · 1 · evaluation depends on the environmentNEWSYes · 67% structured · mentions 0.1.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
24
Examples that run
91%21 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
96%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

2.3K
CRAN downloads in the past year
Rank #11,978 · ~6/day · ~196/mo
Daily download trend is not available in this view yet.
32530 days
92190 days
2.3K1 year
Compare downloads with other packages →
Also on49 r2u3 autocran

Repository

Moved from causalfragility-lab/statapa.

1Stars
0Forks
0Open issues
0Open PRs
0Releases
5Commits
1Commit identities
5 commits · Last activity 2026-04-11 · 0% stars, 30d
Responsiveness
not measured

Stars over time

2026-05-08 · 12026-07-07 · 1
PracticesBeta

3 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/causalfragility-lab/statapa on 2026-10-21.

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

Installing statAPA adds 101 packages (56 with compiled code, 93 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2026)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2026-04-16 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-04-16
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
4.8 KB / 1 file
Download size
76 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("statAPA")
Hait, S. (2026). statAPA: APA 7th Edition Statistical Tables, Plots, and Multilevel Model Reports (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.statAPA

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for statAPA version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy