If the classification method can produce a matrix of posterior
probabilities (see posterior
), then that will be used to
calculate the advantage
. Otherwise, the classify method
will be used and the advantage calculated using a k-nearest neighbours
approach.
classify(model, data, ...)
model object
data set used in model
other argument passed on to methods