Code for: Rhew et al. (2026). The use of inverse probability weighting to estimate treatment effects on the non-zero count portion of a zero-inflated count outcome

Published: 16 March 2026| Version 1 | DOI: 10.17632/kf8fj48g45.1
Contributors:
Isaac Rhew,
,
,
,

Description

The repository contains R code used for the manuscript: Rhew, I.C., Huh, D., Zheng, C., Zhou, Z., Mun, E.-Y. (2026). The use of inverse probability weighting to estimate treatment effects on the non-zero count portion of a zero-inflated count outcome [Manuscript submitted for publication].

Files

Steps to reproduce

1. Download the following files: "IPW for zero-inflated count paper code.R" (annotated R code) and "IPW-CR paper data.Rdata" (R data file). 2. Modify the location of the data file "IPW-CR paper data.RData" referenced in the R code to the location on your system. 3. Run "IPW for zero-inflated count paper code.R"" in R to replicate analyses, including the truncated Poisson models with weights applied, described in Rhew et al. (under review).

Categories

Alcohol, Randomized Controlled Trial, Mixture Model, Causal Inference

Funders

Licence