Package halfmoon updated to version 0.2.0 with previous version 0.1.0 dated 2023-05-30

Wed, 04 Mar 2026 12:02:00 CDT

Title: Techniques to Build Better Balance
Description: Build better balance in causal inference models. 'halfmoon' helps you assess propensity score models for balance between groups using metrics like standardized mean differences and visualization techniques like mirrored histograms. 'halfmoon' supports both weighting and matching techniques.
Author: Malcolm Barrett [aut, cre, cph]
Maintainer: Malcolm Barrett <malcolmbarrett@gmail.com>

Diff between halfmoon versions 0.1.0 dated 2023-05-30 and 0.2.0 dated 2026-03-04

 DESCRIPTION                                                                       |   20
 MD5                                                                               |  318 ++++++-
 NAMESPACE                                                                         |   71 +
 NEWS.md                                                                           |only
 R/add_ess_header.R                                                                |only
 R/autoplot-methods.R                                                              |only
 R/bal_ess.R                                                                       |only
 R/bal_model_auc.R                                                                 |only
 R/bal_model_roc_curve.R                                                           |only
 R/bal_prognostic_score.R                                                          |only
 R/bal_qq.R                                                                        |only
 R/check_balance.R                                                                 |only
 R/check_ess.R                                                                     |only
 R/check_model_auc.R                                                               |only
 R/check_qq.R                                                                      |only
 R/compute_balance.R                                                               |only
 R/compute_balance_categorical.R                                                   |only
 R/data.R                                                                          |   30
 R/ess.R                                                                           |only
 R/geom_calibration.R                                                              |only
 R/geom_ecdf.R                                                                     |   49 +
 R/geom_mirrored_density.R                                                         |only
 R/geom_mirrored_histogram.R                                                       |  126 ++
 R/geom_qq2.R                                                                      |only
 R/geom_roc.R                                                                      |only
 R/plot_balance.R                                                                  |only
 R/plot_calibration.R                                                              |only
 R/plot_ess.R                                                                      |only
 R/plot_mirror_distributions.R                                                     |only
 R/plot_qq.R                                                                       |only
 R/plot_roc.R                                                                      |only
 R/plot_stratified_residuals.R                                                     |only
 R/tidysmd-rexports.R                                                              |    1
 R/utils-ci.R                                                                      |only
 R/utils-documentation.R                                                           |only
 R/utils-group.R                                                                   |only
 R/utils-validation.R                                                              |only
 R/utils.R                                                                         |  292 ++++++
 R/zzz.R                                                                           |only
 README.md                                                                         |  135 ++-
 build                                                                             |only
 data/nhefs_weights.rda                                                            |binary
 man/add_ess_header.Rd                                                             |only
 man/autoplot-halfmoon.Rd                                                          |only
 man/bal_corr.Rd                                                                   |only
 man/bal_energy.Rd                                                                 |only
 man/bal_ess.Rd                                                                    |only
 man/bal_ks.Rd                                                                     |only
 man/bal_model_auc.Rd                                                              |only
 man/bal_model_roc_curve.Rd                                                        |only
 man/bal_prognostic_score.Rd                                                       |only
 man/bal_qq.Rd                                                                     |only
 man/bal_smd.Rd                                                                    |only
 man/bal_vr.Rd                                                                     |only
 man/balance_params.Rd                                                             |only
 man/calculate_normal_ci.Rd                                                        |only
 man/calculate_prop_ci.Rd                                                          |only
 man/check_balance.Rd                                                              |only
 man/check_ess.Rd                                                                  |only
 man/check_model_auc.Rd                                                            |only
 man/check_model_calibration.Rd                                                    |only
 man/check_model_roc_curve.Rd                                                      |only
 man/check_params.Rd                                                               |only
 man/check_qq.Rd                                                                   |only
 man/ess.Rd                                                                        |only
 man/figures/README-balance-example-1.png                                          |only
 man/figures/README-calibration-example-1.png                                      |only
 man/figures/README-example-1.png                                                  |binary
 man/figures/README-example-2.png                                                  |binary
 man/figures/README-example-3.png                                                  |binary
 man/figures/README-qq-example-1.png                                               |only
 man/figures/README-roc-example-1.png                                              |only
 man/figures/README-roc-example-2.png                                              |only
 man/figures/README-unnamed-chunk-3-1.png                                          |binary
 man/figures/README-unnamed-chunk-5-1.png                                          |binary
 man/figures/README-unnamed-chunk-6-1.png                                          |binary
 man/geom_calibration.Rd                                                           |only
 man/geom_ecdf.Rd                                                                  |  105 ++
 man/geom_mirror_density.Rd                                                        |only
 man/geom_mirror_histogram.Rd                                                      |   71 +
 man/geom_qq2.Rd                                                                   |only
 man/geom_roc.Rd                                                                   |only
 man/get_z_score.Rd                                                                |only
 man/ggplot2_params.Rd                                                             |only
 man/nhefs_weights.Rd                                                              |   30
 man/plot-halfmoon.Rd                                                              |only
 man/plot_balance.Rd                                                               |only
 man/plot_ess.Rd                                                                   |only
 man/plot_mirror_distributions.Rd                                                  |only
 man/plot_model_auc.Rd                                                             |only
 man/plot_model_calibration.Rd                                                     |only
 man/plot_model_roc_curve.Rd                                                       |only
 man/plot_qq.Rd                                                                    |only
 man/plot_stratified_residuals.Rd                                                  |only
 man/stat_qq2.Rd                                                                   |only
 man/stat_roc.Rd                                                                   |only
 man/treatment_param.Rd                                                            |only
 man/weighted_quantile.Rd                                                          |only
 tests/testthat/Rplots.pdf                                                         |binary
 tests/testthat/_snaps/add_ess_header.md                                           |only
 tests/testthat/_snaps/autoplot-methods                                            |only
 tests/testthat/_snaps/bal_model_auc.md                                            |only
 tests/testthat/_snaps/bal_model_roc_curve.md                                      |only
 tests/testthat/_snaps/bal_prognostic_score.md                                     |only
 tests/testthat/_snaps/bal_qq.md                                                   |only
 tests/testthat/_snaps/check_balance.md                                            |only
 tests/testthat/_snaps/check_ess.md                                                |only
 tests/testthat/_snaps/check_model_auc.md                                          |only
 tests/testthat/_snaps/compute_balance.md                                          |only
 tests/testthat/_snaps/compute_balance_categorical.md                              |only
 tests/testthat/_snaps/compute_qq.md                                               |only
 tests/testthat/_snaps/error-messages.md                                           |only
 tests/testthat/_snaps/geom_calibration                                            |only
 tests/testthat/_snaps/geom_calibration.md                                         |only
 tests/testthat/_snaps/geom_mirrored_density                                       |only
 tests/testthat/_snaps/geom_mirrored_density.md                                    |only
 tests/testthat/_snaps/geom_mirrored_histogram.md                                  |   12
 tests/testthat/_snaps/geom_mirrored_histogram/layered-weighted-and-unweighted.svg |  438 ++++------
 tests/testthat/_snaps/geom_qq2                                                    |only
 tests/testthat/_snaps/geom_roc                                                    |only
 tests/testthat/_snaps/plot_balance                                                |only
 tests/testthat/_snaps/plot_balance.md                                             |only
 tests/testthat/_snaps/plot_calibration                                            |only
 tests/testthat/_snaps/plot_ess                                                    |only
 tests/testthat/_snaps/plot_mirror_distributions                                   |only
 tests/testthat/_snaps/plot_mirror_distributions.md                                |only
 tests/testthat/_snaps/plot_qq                                                     |only
 tests/testthat/_snaps/plot_qq.md                                                  |only
 tests/testthat/_snaps/plot_roc                                                    |only
 tests/testthat/_snaps/plot_roc.md                                                 |only
 tests/testthat/_snaps/plot_stratified_residuals                                   |only
 tests/testthat/_snaps/plot_stratified_residuals.md                                |only
 tests/testthat/helper-snapshot.R                                                  |only
 tests/testthat/helper-suppress-warnings.R                                         |only
 tests/testthat/helper-vdiffr.R                                                    |    4
 tests/testthat/test-add_ess_header.R                                              |only
 tests/testthat/test-autoplot-methods.R                                            |only
 tests/testthat/test-bal_ess.R                                                     |only
 tests/testthat/test-bal_model_auc.R                                               |only
 tests/testthat/test-bal_model_roc_curve.R                                         |only
 tests/testthat/test-bal_prognostic_score.R                                        |only
 tests/testthat/test-bal_qq.R                                                      |only
 tests/testthat/test-check_balance.R                                               |only
 tests/testthat/test-check_balance_interactions.R                                  |only
 tests/testthat/test-check_ess.R                                                   |only
 tests/testthat/test-check_model_auc.R                                             |only
 tests/testthat/test-compute_balance.R                                             |only
 tests/testthat/test-compute_balance_categorical.R                                 |only
 tests/testthat/test-compute_qq.R                                                  |only
 tests/testthat/test-error-messages.R                                              |only
 tests/testthat/test-ess.R                                                         |only
 tests/testthat/test-extract_weight_data.R                                         |only
 tests/testthat/test-geom_calibration.R                                            |only
 tests/testthat/test-geom_ecdf.R                                                   |    2
 tests/testthat/test-geom_mirrored_density.R                                       |only
 tests/testthat/test-geom_mirrored_histogram.R                                     |   12
 tests/testthat/test-geom_qq2.R                                                    |only
 tests/testthat/test-geom_roc.R                                                    |only
 tests/testthat/test-numeric-psw-equivalence.R                                     |only
 tests/testthat/test-plot_balance.R                                                |only
 tests/testthat/test-plot_calibration.R                                            |only
 tests/testthat/test-plot_ess.R                                                    |only
 tests/testthat/test-plot_mirror_distributions.R                                   |only
 tests/testthat/test-plot_qq.R                                                     |only
 tests/testthat/test-plot_roc.R                                                    |only
 tests/testthat/test-plot_stratified_residuals.R                                   |only
 tests/testthat/test-utils-ci.R                                                    |only
 167 files changed, 1343 insertions(+), 373 deletions(-)

More information about halfmoon at CRAN