Skip to content

Commit ebaef2c

Browse files
committed
update slides
1 parent e8f92a8 commit ebaef2c

23 files changed

+22
-520
lines changed

exercises/04-pscores-weighting-exercises.Rmd

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,25 @@ df <- propensity_model %>%
2525
augment(type.predict = "response", data = nhefs_complete)
2626
```
2727

28-
## Your Turn
28+
## Your Turn (Matching)
29+
30+
_After updating the code chunks below, change `eval = TRUE` before knitting._
31+
32+
Create at "matched" data set using the same propensity score model as above and a caliper of 0.2.
33+
34+
```{r, eval = FALSE}
35+
library(MatchIt)
36+
m <- matchit(___,
37+
data = nhefs_complete,
38+
___,
39+
___
40+
)
41+
matched_df <- ___(m)
42+
```
43+
44+
45+
46+
## Your Turn (Weighting)
2947

3048
_After updating the code chunks below, change `eval = TRUE` before knitting._
3149

@@ -39,11 +57,11 @@ df <- df %>%
3957

4058
Stretch Goal 1:
4159

42-
Add ATT weights to the data frame, `df`
60+
Add ATM weights to the data frame, `df`
4361

4462
```{r, eval = FALSE}
4563
df <- df %>%
46-
mutate(w_att = ___)
64+
mutate(w_atm = ___)
4765
```
4866

4967
Stretch Goal 2:

slides/04-pscore-weighting.Rmd

Lines changed: 0 additions & 245 deletions
This file was deleted.

0 commit comments

Comments
 (0)