Skip to contents

Number of correct classifications.

Usage

n_correct(m)

Arguments

m

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

Value

an integer.

Details

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

Examples

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