# NOT RUN {
data <- data.table::data.table(Target = runif(10))
data[, x1 := qnorm(Target)]
data[, x2 := runif(10)]
data[, Predict := log(pnorm(0.85 * x1 +
sqrt(1-0.85^2) * qnorm(x2)))]
data[, ':=' (x1 = NULL, x2 = NULL)]
data <- RedYellowGreen(data,
PredictColNumber = 2,
ActualColNumber = 1,
TruePositiveCost = 0,
TrueNegativeCost = 0,
FalsePositiveCost = -1,
FalseNegativeCost = -2,
MidTierCost = -0.5,
Precision = 0.5,
Cores = 1,
Boundaries = c(0.05,0.75))
# }
Run the code above in your browser using DataLab