n_correct: Number of correct classifications.

View source: R/utility.R

n_correctR Documentation

Number of correct classifications.

Description

Number of correct classifications.

Usage

n_correct(m)

Arguments

m

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

Details

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

Value

an integer.

Examples

mod <- club(rate ~ dose, data = caffeine)
n_correct(mod)

clubpro documentation built on June 22, 2024, 9:41 a.m.