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