Package: halfmoon 0.2.0.9000

Malcolm Barrett

halfmoon: Techniques to Build Better Balance

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.

Authors:Malcolm Barrett [aut, cre, cph]

halfmoon_0.2.0.9000.tar.gz
halfmoon_0.2.0.9000.zip(r-4.7)halfmoon_0.2.0.9000.zip(r-4.6)halfmoon_0.2.0.9000.zip(r-4.5)
halfmoon_0.2.0.9000.tgz(r-4.6-any)halfmoon_0.2.0.9000.tgz(r-4.5-any)
halfmoon_0.2.0.9000.tar.gz(r-4.7-any)halfmoon_0.2.0.9000.tar.gz(r-4.6-any)
halfmoon_0.2.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
halfmoon/json (API)
NEWS

# Install 'halfmoon' in R:
install.packages('halfmoon', repos = c('https://r-causal.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/r-causal/halfmoon/issues

Pkgdown/docs site:https://r-causal.github.io

Datasets:

On CRAN:

Conda:

6.15 score 22 stars 91 scripts 682 downloads 50 exports 71 dependencies

Last updated from:9b511fe8a2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK239
source / vignettesOK211
linux-release-x86_64OK250
macos-release-arm64OK217
macos-oldrel-arm64OK176
windows-develOK211
windows-releaseOK188
windows-oldrelOK220
wasm-releaseOK138

Exports:add_ess_headerbal_corrbal_energybal_essbal_ksbal_model_aucbal_model_roc_curvebal_prognostic_scorebal_qqbal_smdbal_vrbind_matchescheck_balancecheck_esscheck_model_auccheck_model_calibrationcheck_model_roc_curvecheck_qqcontainsends_withesseverythinggeom_calibrationgeom_ecdfgeom_lovegeom_mirror_densitygeom_mirror_histogramgeom_qq2geom_roclast_collove_plotmatchesnum_rangeone_ofpeek_varsplot_balanceplot_essplot_mirror_distributionsplot_model_aucplot_model_calibrationplot_model_roc_curveplot_qqplot_stratified_residualsstarts_withstat_qq2stat_rocStatQq2StatRoctidy_smdweighted_quantile

Dependencies:base64encbigDbitopsbslibcachemcardscardxclicommonmarkcpp11curldigestdplyrevaluatefarverfastmapfontawesomefsgenericsggplot2gluegtgtablegtsummaryhighrhtmltoolshtmlwidgetsisobandjquerylibjsonlitejuicyjuiceknitrlabelinglifecyclelitedownmagrittrmarkdownMASSmemoisemimepillarpkgconfigpropensitypurrrR6rappdirsRColorBrewerRcppreactablereactRrlangrmarkdownS7sassscalessmdstringistringrtibbletidyrtidyselecttidysmdtinytexutf8V8vctrsviridisLitewithrxfunxml2yaml

Readme and manuals

Help Manual

Help pageTopics
Add ESS Table Headeradd_ess_header
Autoplot Methods for halfmoon Objectsautoplot-halfmoon autoplot.halfmoon_auc autoplot.halfmoon_balance autoplot.halfmoon_calibration autoplot.halfmoon_ess autoplot.halfmoon_qq autoplot.halfmoon_roc
Balance Weighted or Unweighted Pearson Correlationbal_corr
Balance Energy Distancebal_energy
Calculate Effective Sample Size for Single Weight Vectorbal_ess
Balance Kolmogorov-Smirnov (KS) Statistic for Two Groupsbal_ks
Calculate Single AUC for Model Balance Assessmentbal_model_auc
Calculate Single ROC Curve for Model Balance Assessmentbal_model_roc_curve
Compute Prognostic Scores for Balance Assessmentbal_prognostic_score
Compute QQ Data for Single Variable and Weightbal_qq
Balance Standardized Mean Difference (SMD)bal_smd
Balance Variance Ratio for Two Groupsbal_vr
Check Balance Across Multiple Metricscheck_balance
Check Effective Sample Sizecheck_ess
Check Balance Using Weighted ROC Curvescheck_model_auc
Compute calibration data for binary outcomescheck_model_calibration
Check ROC Curves for Multiple Weightscheck_model_roc_curve
Check QQ Data for Multiple Weightscheck_qq
Calculate the Effective Sample Size (ESS)ess
Geom for calibration plot with confidence intervalsgeom_calibration
Calculate weighted and unweighted empirical cumulative distributionsgeom_ecdf
Create mirrored density plotsgeom_mirror_density
Create mirrored histogramsgeom_mirror_histogram
Create 2-dimensional QQ geometriesgeom_qq2
ROC Curve Geom for Causal Inferencegeom_roc
NHEFS with various propensity score weightsnhefs_weights
Create balance plot from check_balance outputplot_balance
Plot Effective Sample Sizeplot_ess
Create mirror distribution plotsplot_mirror_distributions
Plot ROC AUC Values for Balance Assessmentplot_model_auc
Create calibration plotplot_model_calibration plot_model_calibration.data.frame plot_model_calibration.glm plot_model_calibration.halfmoon_calibration plot_model_calibration.lm
Plot weighted ROC Curves for Balance Assessmentplot_model_roc_curve
Create QQ plots for weighted and unweighted samplesplot_qq plot_qq.default plot_qq.halfmoon_qq
Create stratified residual diagnostic plotsplot_stratified_residuals plot_stratified_residuals.data.frame plot_stratified_residuals.glm plot_stratified_residuals.lm
Plot Methods for halfmoon Objectsplot-halfmoon plot.halfmoon_auc plot.halfmoon_balance plot.halfmoon_calibration plot.halfmoon_ess plot.halfmoon_qq plot.halfmoon_roc
QQ2 Plot StatStatQq2 stat_qq2
ROC Curve StatStatRoc stat_roc
Compute weighted quantilesweighted_quantile