Thie1e / cutpointr

Optimal cutpoints in R: determining and validating optimal cutpoints in binary classification
https://cran.r-project.org/package=cutpointr
84 stars 13 forks source link

Allow bootstrap stratification for maximize_boot_metric and minimize_boot_metric #34

Closed Thie1e closed 3 years ago

Thie1e commented 3 years ago

Currently, the bootstrap that is run within maximize_boot_metric and minimize_boot_metric is non-stratified, which can obviously cause problems if there is a low number of positives or a low number of negatives (#33), so we should have the option to also stratify that bootstrap, not only the outer one.

Thie1e commented 3 years ago

Implemented in 1.1.0. That version will probably be on CRAN in January.