APA 7th Edition Statistical Tables, Plots, and Multilevel Model Reports
Overview
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).
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
- 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
Documentation
- 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
Repository
Moved from causalfragility-lab/statapa.
Stars over time
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.
Dependencies
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.
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2026-04-16 · current release
- RR 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")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.
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.