class: center, middle, inverse, title-slide # Propensity Score Weighting ### Lucy D’Agostino McGowan ### Wake Forest University ### 2020-07-29 (updated: 2020-07-29) --- class: inverse ## Propensity scores * Weighting * Matching * Stratification * Direct Adjustment * ... --- class: inverse ## Propensity scores * **Weighting** * Matching * Stratification * Direct Adjustment * ... --- class: inverse ## Target estimands ### Average Treatment Effect (ATE) `$$\Large w_{ATE} = \frac{Z_i}{p_i} + \frac{1-Z_i}{1 - p_i}$$` --- class: inverse ## Target estimands ### Average Treatment Effect Among the Treated (ATT) `$$\Large w_{ATT} = \frac{p_i Z_i}{p_i} + \frac{p_i (1-Z_i)}{1-p_i}$$` -- ### Average Treatment Effect Among the Controls (ATC) `$$\Large w_{ATC} = \frac{(1-p_i)Z_i}{p_i} + \frac{(1-p_i)(1-Z_i)}{(1-p_i)}$$` --- class: inverse ## Target estimands ### Average Treatment Effect Among the Evenly Matchable (ATM) `$$\Large w_{ATM} = \frac{\min \{p_i, 1-p_i\}}{z_ip_i + (1-Z_i)(1-p_i)}$$` -- ### Average Treatment Effect Among the Overlap Population `$$\Large w_{ATO} = (1-p_i)Z_i + p_i(1-Z_i)$$` --- ## Histogram of propensity scores <img src="04-pscore-weighting_files/figure-html/unnamed-chunk-3-1.png" style="display: block; margin: auto;" /> --- ## ATE <img src="04-pscore-weighting_files/figure-html/unnamed-chunk-4-1.png" style="display: block; margin: auto;" /> --- ## ATT <img src="04-pscore-weighting_files/figure-html/unnamed-chunk-5-1.png" style="display: block; margin: auto;" /> --- ## ATC <img src="04-pscore-weighting_files/figure-html/unnamed-chunk-6-1.png" style="display: block; margin: auto;" /> --- ## ATM <img src="04-pscore-weighting_files/figure-html/unnamed-chunk-7-1.png" style="display: block; margin: auto;" /> --- ## ATO <img src="04-pscore-weighting_files/figure-html/unnamed-chunk-8-1.png" style="display: block; margin: auto;" /> --- ## ATE in R * Average Treatment Effect (ATE) * `\(w_{ATE} = \frac{Z_i}{p_i} + \frac{1-Z_i}{1 - p_i}\)` ```r df <- propensity_model %>% augment(type.predict = "response", data = nhefs_complete) %>% * mutate(w_ate = (qsmk / .fitted) + ((1 - qsmk) / (1 - .fitted))) ``` --- class: inverse ## Your Turn
05
:
00
1. Using the propensity scores you created in the previous exercise, add the ATE weights to your data frame `df` 2. Stretch: Using the same propensity scores, create ATT weights