You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default na_omit processing should likely remove NAs from y and x at training time, but only x at prediction time. Using default {recipes} steps, one would do something like:
# Baseline AR3r<- epi_recipe(x) %>%
step_epi_ahead(death_rate, ahead=7) %>%
step_epi_lag(death_rate, lag= c(0, 7, 14)) %>%
step_epi_lag(case_rate, lag= c(0, 7, 14)) %>%
step_naomit(all_predictors()) %>%
# below, `skip` means we don't do this at predict time# we should probably do something useful here to avoid user error
step_naomit(all_outcomes(), skip=TRUE)
Write a wrapper that adds combines these steps into 1.
The text was updated successfully, but these errors were encountered:
Default
na_omit
processing should likely removeNA
s fromy
andx
at training time, but onlyx
at prediction time. Using default{recipes}
steps, one would do something like:Write a wrapper that adds combines these steps into 1.
The text was updated successfully, but these errors were encountered: