Skip to contents

EasyStat 2.1.0

Changes

  • easy_ttest() now defaults to var.equal = TRUE (the classical pooled-variance t-test). Pass var.equal = FALSE to use Welch’s t-test instead.

  • easy_ttest() accepts a categorical/numeric pair in any order (e.g. easy_ttest(group, outcome) or easy_ttest(outcome, group)) and reshapes it into the standard outcome ~ group comparison automatically.

  • Fixed a bug where easy_ttest() crashed on a one-sample test (x numeric, no y) because broom::tidy() returns estimate rather than estimate1 for one-sample t.test() objects.

Reporting improvements

  • Test statistics (t, z, F, χ²) are now reported as absolute values across easy_ttest(), easy_ztest(), easy_ftest(), easy_anova(), easy_chisq(), and easy_correlation(), since their sign is an artifact of argument order rather than meaningful direction.

  • Mean differences in easy_ttest() and easy_ztest() are now reported as larger − smaller and are always non-negative; the accompanying confidence interval is recomputed in the same direction so its bounds no longer appear sign-flipped relative to the point estimate.

  • easy_ttest() now reports both the degrees of freedom actually used (Welch or pooled, depending on var.equal) and the equal-variance degrees of freedom (n1 + n2 - 2) side by side, along with explicit n1/n2 sample sizes and a “Variance Assumption” label.

  • easy_ztest() two-sample table now also reports n1/n2.

  • Variable names inferred from expressions like mtcars$mpg or data[["mpg"]] are now cleaned to just mpg in result tables and plot labels (easy_ttest(), easy_ztest(), easy_ftest(), easy_correlation(), easy_chisq(), easy_wilcox(), easy_describe(), and the easy_* plot functions).


EasyStat 2.0.0

CRAN release: 2026-04-29

New Features

  • Added easy_logistic_regression() for binary logistic regression with odds ratios, approximate odds-ratio confidence intervals, likelihood-ratio model tests, McFadden pseudo-R2, and automated narrative reporting.

  • Added richer supporting tables:

    • ANOVA now includes group descriptives, assumption checks, and Tukey post-hoc comparisons.
    • Chi-square tests now include observed contingency tables, expected counts, row percentages, column percentages, and total percentages.
    • Regression now includes ANOVA, diagnostic, and influential-observation tables.
  • Added easy_wilcox() and easy_kruskal() for common non-parametric workflows.

  • Added regression figures: easy_regression_diagnostics() and easy_odds_ratio_plot().

  • Added comprehensive descriptive statistics: easy_describe() and easy_group_summary() with 21 statistics per variable (mean, median, mode, SD, variance, skewness, kurtosis, normality test, CI, and more).

  • Extended inferential test suite with four new functions:

    • easy_chisq(): Chi-square test of independence and goodness-of-fit, with Cramér’s V effect size.
    • easy_ztest(): One- and two-sample z-tests with Cohen’s d.
    • easy_ftest(): Levene-style F-test for equality of variances via stats::var.test(), with variance ratio CI.
    • easy_correlation(): Pearson/Spearman/Kendall bivariate and pairwise matrix correlation with confidence intervals.
  • New visualization functions (all return easystat_result objects with plain-language interpretations):

  • New theme: theme_easystat() — a professional ggplot2 theme and color system applied uniformly across all visualization functions.

  • Word export: export_to_word() creates a fully formatted .docx report (via flextable and officer) with title, authors, narrative, and tables.

Improvements

  • User-facing p-values now display as percentages rounded to 4 decimal places across result tables, plot summaries, and narrative text.
  • Narrative Generator Module expanded with 15 conditional narrative templates covering all new test and plot types.
  • All functions return a unified easystat_result S3 object with consistent fields: test_type, formula_str, raw_model, coefficients_table, model_fit_table, and explanation.
  • HTML Viewer output (print.easystat_result) redesigned with improved typography and responsive layout.

EasyStat 1.0.0