Thanks as always to Kit Baum, a new package ipwbreg is now available for download from SSC. In Stata, use the ssc command to do this.

The ipwbreg package is described as below on my website, and fits a binary generalized linear model to the data, and then computes inverse propensity weights for the binary outcome. A wide range of link functions is allowed.

Best wishes

Roger

----------------------------------------------------------------------------
package ipwbreg from http://www.rogernewsonresources.org.uk/stata16
----------------------------------------------------------------------------

TITLE
ipwbreg: Inverse propensity weights from Bernoulli regression

DESCRIPTION/AUTHOR(S)
ipwbreg fits a Bernoulli regression model for a binary dependent
variable in a list of independent variables, and then outputs a list
of inverse propensity weight variables. These propensity weight
variables may be used to estimate propensity-adjusted effects of the
binary treatment on an outcome variable.

Author: Roger Newson
Distribution-Date: 28september2021
Stata-Version: 16

INSTALLATION FILES (click here to install)
ipwbreg.ado
robit7.ado
ipwbreg.sthlp
----------------------------------------------------------------------------
(click here to return to the previous screen)