Skip to contents

Classification accuracy for each observation.

Usage

accuracy(m)

Arguments

m

an object of class "clubprofit" produced by club()

Value

a table

Details

Returns a character vector containing a string corresponding to each observation indicating whether classification of that observation was "correct", "incorrect", or "ambigous".

Examples

mod <- club(rate ~ dose, data = caffeine)
accuracy(mod)
#>      
#>       correct incorrect ambiguous
#>   0         5         5         0
#>   100       6         4         0
#>   200       7         3         0