# NOT RUN {
# load sample models:
data(rotif.mods)
# choose a particular model to play with:
mod <- rotif.mods$models[[1]]
# }
# NOT RUN {
optiThresh(model = mod)
# }
# NOT RUN {
# change some of the parameters:
optiThresh(model = mod, pch = 20,
measures = c("CCR", "Sensitivity", "kappa", "TSS"), ylim = c(0, 1))
# you can also use optiThresh with vectors of observed and predicted
# values instead of with a model object:
# }
# NOT RUN {
optiThresh(obs = mod$y, pred = mod$fitted.values, pch = ".")
# }
Run the code above in your browser using DataLab