Binary Cut-Off Transformation
Value
Transformation function to be used in create_baseline_object()
.
Sets quantile values larger than cut-off value to TRUE
otherwise FALSE
.
Examples
# Creates a simple function, where `data` is a `BaselineDataFrame`:
function(data) {
ext <- data$ext == 0
q <- get_quantiles(data, name)
ifelse(ext, q > int_cutoff, q > ext_cutoff)
}
#> function (data)
#> {
#> ext <- data$ext == 0
#> q <- get_quantiles(data, name)
#> ifelse(ext, q > int_cutoff, q > ext_cutoff)
#> }
#> <environment: 0x55fbea6b8f50>