# NOT RUN {
# load sample models:
data(rotif.mods)
# choose a particular model to play with:
mod <- rotif.mods$models[[1]]
optiPair(model = mod)
optiPair(model = mod, measures = c("Precision", "Recall"))
optiPair(model = mod, measures = c("UPR", "OPR"))
optiPair(model = mod, measures = c("CCR", "F1score"))
# you can also use 'optiPair' with vectors of observed
# and predicted values, instead of a model object:
optiPair(obs = mod$y, pred = mod$fitted.values)
# }
Run the code above in your browser using DataLab