This page explains the details of estimating weights from generalized boosted model-based propensity scores by setting method = "gbm"
in the call to weightit
or weightitMSM
. This method can be used with binary, multinomial, and continuous treatments.
In general, this method relies on estimating propensity scores using generalized boosted modeling and then converting those propensity scores into weights using a formula that depends on the desired estimand. The algorithm involves choosing a balance criterion to optimize so that balance, rather than prediction, is prioritized.
Binary Treatments
For binary treatments, this method estimates the propensity scores using gbm.fit
and then optimizes balance using col_w_smd
for standardized mean differences and col_w_ks
for Kolmogorov-Smirnoff statistics, both from cobalt. The following estimands are allowed: ATE, ATT, ATC, ATO, and ATM. The weights are computed from the estimated propensity scores using get_w_from_ps
, which implements the standard formulas. When include.obj = TRUE
, the returned object is the gbm
fit.
Multinomial Treatments
For multinomial treatments, this method estimates the propensity scores using gbm.fit
with distribution = "multinomial"
and then optimizes balance using col_w_smd
for standardized mean differences and col_w_ks
for Kolmogorov-Smirnoff statistics, both from cobalt. The following estimands are allowed: ATE, ATT, ATC, ATO, and ATM. The weights are computed from the estimated propensity scores using get_w_from_ps
, which implements the standard formulas. The balance that is optimized is that between each non-focal treatment and the focal treatment for the ATT and ATC and between each treatment and the overall unweighted sample for other estimands. When include.obj = TRUE
, the returned object is the gbm
fit.
Continuous Treatments
For continuous treatments, the generalized propensity score is estimated using gbm.fit
. When include.obj = TRUE
, the returned object is the gbm
fit.
Longitudinal Treatments
For longitudinal treatments, the weights are the product of the weights estimated at each time point.
Sampling Weights
Sampling weights are supported through s.weights
in all scenarios.
Missing Data
Missing data is compatible with generalized boosted modeling. NA
values are simply considered their own plausible value for the covariate. When balance statistics are computed to choose the optimal tree, they are computed using only the non-missing values for the variable in question.