File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ Below is the propensity score model you created in the previous exercise.
18
18
19
19
``` {r}
20
20
seven_dwarfs <- seven_dwarfs_train_2018 |>
21
- filter(hour == 9)
21
+ filter(wait_hour == 9)
22
22
23
23
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 ,
25
25
data = seven_dwarfs,
26
26
family = binomial()
27
27
)
@@ -82,7 +82,7 @@ Update the code below to examine the distribution of the weighted sample. **HINT
82
82
#| warning: false
83
83
ggplot(
84
84
seven_dwarfs_prop,
85
- aes(.fitted, fill = factor(extra_magic_morning ))
85
+ aes(.fitted, fill = factor(park_extra_magic_morning ))
86
86
) +
87
87
geom_mirror_histogram(bins = 50, alpha = .5) +
88
88
geom_mirror_histogram(aes(weight = ____), alpha = .5, bins = 50) +
You can’t perform that action at this time.
0 commit comments