Skip to content

statsExpressions

2.2.0Package record

Tidy Dataframes and Expressions with Statistical Details

2packages depend
108.3Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Utilities for producing dataframes with rich details for the most common types of statistical approaches and tests: parametric, nonparametric, robust, and Bayesian t-test, one-way ANOVA, correlation analyses, contingency table analyses, and meta-analyses. The functions are pipe-friendly and provide a consistent syntax to work with tidy data. These dataframes additionally contain expressions with statistical details, and can be used in graphing packages. This package also forms the statistical processing backend for 'ggstatsplot'. References: Patil (2021) doi:10.21105/joss.03236.

Changes in 2.2.0
  • New helper complete_subjects() prepares long-format repeated-measures data the same way the paired tests do. It drops rows that cannot be paired, validates the subject identifier, and keeps only subjects observed in every condition. Packages that plot or summarize repeated-measures data (such as {ggstatsplot}) can use it so that they work on the same observations as the statistical tests.
  • Repeated-measures analyses (paired = TRUE) now validate the subject identifier via complete_subjects(), and thus in long_to_wide_converter(), two_sample_test(), oneway_anova(), and pairwise_comparisons():
  • A subject with more than one row in a level of x now gives an informative error. Previously, depending on type, this produced list-column warnings, cryptic errors, or results that silently averaged or discarded the duplicated observations.
Show all changes in 2.2.0Hide the rest of the changes in 2.2.0
  • Rows with a missing subject.id are dropped. Previously they were treated as observations of a single shared subject.
  • Subjects without a row for every level of x are dropped, just like subjects with a missing response. Previously they were counted in the reported sample size, and the Bayesian two-sample test failed.
  • A row with a missing x value now removes only that row rather than every row of the subject.
  • oneway_anova() with type = "robust" and paired = TRUE now reports the correct Algina-Keselman-Penfield effect size and confidence interval. Previously the internal row identifier was treated as an extra condition, which inflated the estimate (e.g., 0.66 instead of 0.32 for bugs_long).
  • Columns in the input data that share a name with a function argument or an internal variable no longer change the results. For example, a column named digits or n.text in add_expression_col() input, a grouping variable named digits or centrality in centrality_description(), a or b in Bayesian pairwise_comparisons(), pair in pairwise_contingency_table(), or es.text in tidy_model_expressions() input could previously produce wrong expressions or errors.
  • Functions that report a sample size no longer warn that 'big.mark' and 'decimal.mark' are both ',' when options(OutDec = ",") is set (#146).
  • Corrected the documentation of Bayesian correlation columns, missing-value counts in centrality_description(), degrees of freedom, paired sample sizes, and adjusting p-values after expressions have been generated.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 9.6 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-26
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.2.0
READMEYes · 1,078 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 2.2.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites a JOSS paper
Help pages
19 (1 internal)includes a package overview page
Examples that run
100%18 run in a plain check (7 of them under a condition)
Exported functions with examples
100%
Documented parameters
97%
Return-value docs
93%
Help pages citing references
11%

Downloads

108.3K
CRAN downloads in the past year
Rank #1,420 · ~297/day · ~9K/mo
Daily download trend is not available in this view yet.
6K30 days
18.9K90 days
108.3K1 year
Compare downloads with other packages →
Also on1.1K r2u6 autocran6.8K conda_forge

Repository

316Stars
20Forks
0Open issues
0Open PRs
49Releases
730Commits
4Commit identities
statistical-testsstatistical-detailsmeta-analysiscontingency-tablerobustcorrelationparametricbayesian-inference
730 commits · Last activity 2026-10-17 · +0.3% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
89%
Median days to close, 50 most recently updated closed issues
100
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-09-26 · 3102026-09-24 · 316
PracticesBeta

14 development-tooling and community-health practices detected across 9 families in the upstream repository

Checks run against github.com/indrajeetpatil/statsexpressions on 2026-10-11.

Continuous integration (1)
GitHub Actions
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-11

pkgdown site last built 2026-10-11, before release 2.2.0 (2026-10-17)

Coverage (2)
Coverage reporting.covrignore
Reproducibility and dev environment (1)
Makefile
Show all practicesHide 5 practices
CRAN release process (1)
cran-comments.md
Research and citation (1)
codemeta.json
Automation and maintenance (2)
Dependabotpre-commit
Lint, format, editor (2)
lintrAir
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2025-12-06
    Named in .Rbuildignore: .claude
    Named in .gitignore: .claude
    Pull request it wrote: opened by a project member
    Commits: at least 2 crediting it in the message
  • GitHub Copilotfirst seen 2026-02-05
    Seen in the repository: .github/prompts
    Commits: at least 1 crediting it in the message
Shared conventions any agent may read, so they name no particular tool.
Seen in the repository: AGENTS.md, .agents, .agents/skills
Review tools
  • Copilot code review
    Commits: at least 2 accepting its review suggestions
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
26 external dependencies (excludes base and recommended)

Installing statsExpressions adds 95 packages (49 with compiled code, 80 MB of source tarballs). Heaviest: stringi 11 MB, BayesFactor 6.1 MB, ggplot2 6.0 MB.

Depends (2)
R >= 4.5.0stats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
3indirect
Imports 2
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (1)
Maintainer since 0.1.0 (2019), Author, Copyright holder
Listed in earlier versions (1)
no longer listed · 0.1.0 to 0.3.1
Releases (49)

Pick two releases to compare their code metrics.

Show 41 earlier eventsHide 41 earlier events
  • R
    R 4.4.0 released · 2024-04-24
  • 1.5.4
    record
    2024-03-20 · diff ↗ ·
    removed 1 export
    %$%
  • 1.5.3
    record
    2024-01-13 · diff ↗
  • 1.5.2
    record
    2023-09-12 · diff ↗
  • 1.5.1
    record
    2023-05-23 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.5.0
    record
    2023-02-19 · diff ↗
  • 1.4.0
    record
    2023-01-14 · diff ↗
  • 1.3.6
    record
    2022-12-16 · diff ↗
  • 1.3.5
    record
    2022-11-07 · diff ↗ ·
    removed 6 exports
    %->%, %T>%, %|%, %||%, enframe, format_value
  • 1.3.4
    record
    2022-10-10 · diff ↗
  • 1.3.3
    record
    2022-08-11 · diff ↗
  • 1.3.2
    record
    2022-05-20 · diff ↗ ·
    added 2 exports
    p_adjust_text, pairwise_comparisons
  • R
    R 4.2.0 released · 2022-04-22
  • 1.3.1
    record
    2022-03-29 · diff ↗
  • 1.3.0
    record
    2022-01-14 · diff ↗ ·
    removed 3 exports
    correlation, expr_template, format_num
    added 1 export
    add_expression_col
  • 1.2.0
    record
    2021-10-19 · diff ↗ ·
    removed 4 exports
    :=, bf_extractor, standardize_names, tidy_model_effectsize
    added 9 exports
    %->%, %T>%, centrality_description, enframe, format_num, format_value, long_to_wide_converter, stats_type_switch, tidy_model_expressions
  • 1.1.0
    record
    2021-05-30 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.1
    record
    2021-04-13 · diff ↗ ·
    removed 6 exports
    expr_contingency_tab, expr_corr_test, expr_meta_random, expr_oneway_anova, expr_t_onesample, expr_t_twosample
  • 1.0.0
    record
    2021-03-11 · diff ↗ ·
    added 6 exports
    contingency_table, corr_test, meta_analysis, one_sample_test, oneway_anova, two_sample_test
  • 0.7.1
    record
    2021-02-19 · diff ↗ ·
    removed 2 exports
    bf_expr_template, tidy_model_performance
    added 1 export
    standardize_names
  • 0.7.0
    record
    2021-01-19 · diff ↗ ·
    removed 13 exports
    bf_contingency_tab, bf_corr_test, bf_meta_random, bf_oneway_anova, bf_ttest, expr_anova_bayes, expr_anova_nonparametric, expr_anova_parametric, expr_anova_robust, expr_t_bayes, expr_t_nonparametric, expr_t_parametric, expr_t_robust
    added 5 exports
    bf_expr_template, bf_extractor, expr_oneway_anova, expr_t_twosample, tidy_model_effectsize
  • 0.6.2
    record
    2020-12-08 · diff ↗
  • 0.6.1
    record
    2020-12-01 · diff ↗ ·
    removed 1 export
    prior
    added 2 exports
    tidy_model_parameters, tidy_model_performance
  • 0.6.0
    record
    2020-10-31 · diff ↗ ·
    removed 9 exports
    bf_meta, expr_meta_bayes, expr_meta_parametric, expr_meta_robust, expr_onesample_proptest, long_to_wide_converter, set_cwd, signif_column, specify_decimal_p
    added 2 exports
    bf_meta_random, expr_meta_random
  • 0.5.1
    record
    2020-10-05 · diff ↗
  • 0.5.0
    record
    2020-09-12 · diff ↗ ·
    added 1 export
    correlation
  • 0.4.2
    record
    2020-06-20 · diff ↗ ·
    added 1 export
    :=
  • R
    R 4.0.0 released · 2020-04-24
  • 0.4.1
    record
    2020-04-22 · diff ↗
  • 0.4.0
    record
    2020-04-15 · diff ↗ ·
    removed 7 exports
    bf_expr, bf_extractor, bf_one_sample_ttest, bf_onesample_proptest, bf_two_sample_ttest, corr_objects, expr_mann_nonparametric
    added 1 export
    prior
  • 0.3.1
    record
    2020-02-14 · diff ↗ ·
    added 3 exports
    corr_objects, set_cwd, signif_column
  • 0.3.0
    record
    2020-01-29 · diff ↗ ·
    removed 3 exports
    lm_effsize_ci, set_cwd, signif_column
    added 1 export
    expr_meta_bayes
  • 0.2.1
    record
    2020-01-23 · diff ↗ ·
    added 4 exports
    %<-%, bf_meta, expr_meta_parametric, expr_meta_robust
  • 0.2.0
    record
    2020-01-10 · diff ↗
  • 0.1.3
    record
    2019-12-18 · diff ↗
  • 0.1.2
    record
    2019-12-13 · diff ↗
  • 0.1.1
    record
    2019-08-28 · diff ↗
  • 0.1.0
    record
    2019-08-24
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2019-08-24
Total releases
49 / 7 yrs
License
MIT + file LICENSE OSI · relicensed from GPL-3 | file LICENSE in 1.5.5
Minimum R
≥ 4.5.0
Bundled data
32 KB / 3 files
Download size
3.3 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("statsExpressions")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.21105/joss.03236.

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 statsExpressions version 2.2.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, 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