Skip to content

Commit e6bbc97

Browse files
Merge pull request #73 from r-causal/estimands
Interweave graphs and definitions of estimands
2 parents 24c6ba9 + 9f0c097 commit e6bbc97

File tree

1 file changed

+47
-48
lines changed

1 file changed

+47
-48
lines changed

slides/raw/07-using-pscores.qmd

Lines changed: 47 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -247,54 +247,6 @@ $$\Large w_{ATE} = \frac{Z_i}{p_i} + \frac{1-Z_i}{1 - p_i}$$
247247
(Z / p) + ((1 - Z) / (1 - p))
248248
```
249249

250-
251-
252-
## Target estimands: ATT & ATC {background-color="#23373B"}
253-
254-
. . .
255-
256-
Average Treatment Effect Among the Treated (ATT)
257-
$$\Large w_{ATT} = \frac{p_i Z_i}{p_i} + \frac{p_i (1-Z_i)}{1-p_i}$$
258-
259-
```{r}
260-
#| eval: false
261-
((p * Z) / p) + ((p * (1 - Z)) / (1 - p))
262-
```
263-
264-
## Target estimands: ATT & ATC {background-color="#23373B"}
265-
266-
Average Treatment Effect Among the Controls (ATC)
267-
$$\Large w_{ATC} = \frac{(1-p_i)Z_i}{p_i} + \frac{(1-p_i)(1-Z_i)}{(1-p_i)}$$
268-
269-
```{r}
270-
#| eval: false
271-
(((1 - p) * Z) / p) + (((1 - p) * (1 - Z)) / (1 - p))
272-
```
273-
274-
## Target estimands: ATM & ATO {background-color="#23373B"}
275-
276-
. . .
277-
278-
Average Treatment Effect Among the Evenly Matchable (ATM)
279-
$$\Large w_{ATM} = \frac{\min \{p_i, 1-p_i\}}{Z_ip_i + (1-Z_i)(1-p_i)}$$
280-
281-
282-
```{r}
283-
#| eval: false
284-
pmin(p, 1 - p) / (Z * p + (1 - Z) * (1 - p))
285-
```
286-
287-
## Target estimands: ATM & ATO {background-color="#23373B"}
288-
289-
Average Treatment Effect Among the Overlap Population
290-
$$\Large w_{ATO} = (1-p_i)Z_i + p_i(1-Z_i)$$
291-
292-
293-
```{r}
294-
#| eval: false
295-
(1 - p) * Z + p * (1 - Z)
296-
```
297-
298250
## Histogram of propensity scores
299251

300252
```{r}
@@ -350,6 +302,28 @@ ggplot(df, aes(.fitted)) +
350302
theme(legend.position = "bottom")
351303
```
352304

305+
## Target estimands: ATT & ATC {background-color="#23373B"}
306+
307+
. . .
308+
309+
Average Treatment Effect Among the Treated (ATT)
310+
$$\Large w_{ATT} = \frac{p_i Z_i}{p_i} + \frac{p_i (1-Z_i)}{1-p_i}$$
311+
312+
```{r}
313+
#| eval: false
314+
((p * Z) / p) + ((p * (1 - Z)) / (1 - p))
315+
```
316+
317+
## Target estimands: ATT & ATC {background-color="#23373B"}
318+
319+
Average Treatment Effect Among the Controls (ATC)
320+
$$\Large w_{ATC} = \frac{(1-p_i)Z_i}{p_i} + \frac{(1-p_i)(1-Z_i)}{(1-p_i)}$$
321+
322+
```{r}
323+
#| eval: false
324+
(((1 - p) * Z) / p) + (((1 - p) * (1 - Z)) / (1 - p))
325+
```
326+
353327
## ATT
354328

355329
```{r}
@@ -384,6 +358,31 @@ ggplot(df, aes(.fitted)) +
384358
theme(legend.position = "bottom")
385359
```
386360

361+
362+
## Target estimands: ATM & ATO {background-color="#23373B"}
363+
364+
. . .
365+
366+
Average Treatment Effect Among the Evenly Matchable (ATM)
367+
$$\Large w_{ATM} = \frac{\min \{p_i, 1-p_i\}}{Z_ip_i + (1-Z_i)(1-p_i)}$$
368+
369+
370+
```{r}
371+
#| eval: false
372+
pmin(p, 1 - p) / (Z * p + (1 - Z) * (1 - p))
373+
```
374+
375+
## Target estimands: ATM & ATO {background-color="#23373B"}
376+
377+
Average Treatment Effect Among the Overlap Population
378+
$$\Large w_{ATO} = (1-p_i)Z_i + p_i(1-Z_i)$$
379+
380+
381+
```{r}
382+
#| eval: false
383+
(1 - p) * Z + p * (1 - Z)
384+
```
385+
387386
## ATM
388387

389388
```{r}

0 commit comments

Comments
 (0)