I would like to tell yardstick
that the default level for my logistic model is the second level. I know I can specify individual statistics with event_level = "second"
but I would prefer to set the event_level with a global option. When I try it does not seem to work.
library(tidymodels)
data("two_class_example")
sens(two_class_example, truth, predicted, event_level = "second")
#> # A tibble: 1 × 3
#> .metric .estimator .estimate
#> <chr> <chr> <dbl>
#> 1 sens binary 0.793
options(yardstick.event_level = "second")
sens(two_class_example, truth, predicted)
#> # A tibble: 1 × 3
#> .metric .estimator .estimate
#> <chr> <chr> <dbl>
#> 1 sens binary 0.880
Created on 2023-07-17 with reprex v2.0.2
Is this a bug or am I doing something wrong?