Skip to contents

Stabilized IPW (Austin 2009 / Robins et al. 2000)

Usage

morie_weight_stabilized(data, treatment, covariates, trim = NULL)

Arguments

data

Data frame.

treatment

Binary treatment column (0/1).

covariates

Covariate column names.

trim

Optional symmetric propensity trim, e.g. 0.01 clips scores to the interval 0.01 to 0.99.

Value

A morie_weight object with stabilized ATE weights.

Examples

d <- data.frame(t = rbinom(100, 1, 0.4), x = rnorm(100))
morie_weight_stabilized(d, "t", "x")
#> morie_weight: logistic propensity (estimand ATE)
#>   n = 100  ESS = 98.6  weight range [0.687, 1.452]