R/utility.R
n_incorrect.Rd
Number of incorrect classifications.
n_incorrect(m)
an object of class "clubprofit" produced by club()
club()
an integer.
Returns the number of observations which were classified incorrectly by the model.
mod <- club(rate ~ dose, data = caffeine) n_incorrect(mod) #> [1] 12