Skip to content

Commit 8b6d8f8

Browse files
committed
fix 07 code
1 parent 5f9c9e5 commit 8b6d8f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/07-pscores-using-exercises.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Below is the propensity score model you created in the previous exercise.
1818

1919
```{r}
2020
seven_dwarfs <- seven_dwarfs_train_2018 |>
21-
filter(hour == 9)
21+
filter(wait_hour == 9)
2222
2323
propensity_model <- glm(
24-
extra_magic_morning ~ wdw_ticket_season + close + weather_wdwhigh,
24+
park_extra_magic_morning ~ day_ticket_season + park_close + day_temperature_high,
2525
data = seven_dwarfs,
2626
family = binomial()
2727
)
@@ -82,7 +82,7 @@ Update the code below to examine the distribution of the weighted sample. **HINT
8282
#| warning: false
8383
ggplot(
8484
seven_dwarfs_prop,
85-
aes(.fitted, fill = factor(extra_magic_morning))
85+
aes(.fitted, fill = factor(park_extra_magic_morning))
8686
) +
8787
geom_mirror_histogram(bins = 50, alpha = .5) +
8888
geom_mirror_histogram(aes(weight = ____), alpha = .5, bins = 50) +

0 commit comments

Comments
 (0)