Skip to content

Commit 5f9c9e5

Browse files
committed
fix 06 exercise
1 parent d1edc41 commit 5f9c9e5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

exercises/06-intro-pscores-exercises.qmd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,24 +93,24 @@ First we need to subset the data to only include average wait times between 9 an
9393

9494
```{r}
9595
seven_dwarfs <- seven_dwarfs_train_2018 |>
96-
filter(hour == 9)
96+
filter(wait_hour == 9)
9797
```
9898

9999
Here's a data dictionary of the variables we need in the `seven_dwarfs` data set:
100100

101101
| Variable | Column in `seven_dwarfs` |
102102
|--------------------------------|--------------------------|
103-
| Posted Wait Time (outcome) | `avg_spostmin` |
104-
| Extra Magic Morning (exposure) | `extra_magic_morning` |
105-
| Ticket Season | `wdw_ticket_season` |
106-
| Closing Time | `close` |
107-
| Historic Temperature | `weather_wdwhigh` |
103+
| Posted Wait Time (outcome) | `wait_minutes_posted_avg`|
104+
| Extra Magic Morning (exposure) | `park_extra_magic_morning` |
105+
| Ticket Season | `day_ticket_season` |
106+
| Closing Time | `park_close` |
107+
| Historic Temperature | `day_temperature_high` |
108108

109109
## Your Turn
110110

111111
*After updating the code chunks below, change `eval: true` before rendering*
112112

113-
Now, fit a propensity score model for `extra_magic_morning` using the above proposed confounders.
113+
Now, fit a propensity score model for `park_extra_magic_morning` using the above proposed confounders.
114114

115115
```{r}
116116
#| eval: false
@@ -131,7 +131,7 @@ df <- propensity_model |>
131131

132132
Stretch Goal 1:
133133

134-
Examine two histograms of the propensity scores, one days with Extra Magic Morning (`extra_magic_morning == 1`) and one for days without it (`extra_magic_morning == 0`).
134+
Examine two histograms of the propensity scores, one days with Extra Magic Morning (`park_extra_magic_morning == 1`) and one for days without it (`park_extra_magic_morning == 0`).
135135
How do these compare?
136136

137137
```{r}

0 commit comments

Comments
 (0)