View source: R/arx_classifier.R
arx_class_epi_workflow | R Documentation |
arx_classifier
workflowThis function creates an unfit workflow for use with arx_classifier()
.
It is useful if you want to make small modifications to that classifier
before fitting and predicting. Supplying a trainer to the function
may alter the returned epi_workflow
object but can be omitted.
arx_class_epi_workflow(
epi_data,
outcome,
predictors,
trainer = parsnip::logistic_reg(),
args_list = arx_class_args_list()
)
epi_data |
An |
outcome |
A character (scalar) specifying the outcome (in the
|
predictors |
A character vector giving column(s) of predictor variables.
This defaults to the |
trainer |
A |
args_list |
A list of customization arguments to determine
the type of forecasting model. See |
An unfit epi_workflow
.
arx_classifier()
arx_class_args_list()
jhu <- covid_case_death_rates %>%
filter(time_value >= as.Date("2021-11-01"))
arx_class_epi_workflow(jhu, "death_rate", c("case_rate", "death_rate"))
arx_class_epi_workflow(
jhu,
"death_rate",
c("case_rate", "death_rate"),
trainer = multinom_reg(),
args_list = arx_class_args_list(
breaks = c(-.05, .1), ahead = 14,
horizon = 14, method = "linear_reg"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.