classify: Extract classifications from a variety of methods.

View source: R/classification.r

classifyR Documentation

Extract classifications from a variety of methods.

Description

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.

Usage

classify(model, data, ...)

Arguments

model

model object

data

data set used in model

...

other argument passed on to methods


hadley/classifly documentation built on May 25, 2022, 7:18 a.m.