Skip to contents

Number of incorrect classifications.

Usage

n_incorrect(m)

Arguments

m

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

Value

an integer.

Details

Returns the number of observations which were classified incorrectly by the model.

Examples

mod <- club(rate ~ dose, data = caffeine)
n_incorrect(mod)
#> [1] 12