Skip to contents

Predicted category for each observation.

Usage

# S3 method for clubprofit
predict(object, ...)

Arguments

object

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

...

ignored

Value

a table

Details

Returns a character vector containing the name of the predicted category for each observed value.

Examples

mod <- club(rate ~ dose, data = caffeine)
predict(mod)
#>      
#>       0 100 200
#>   0   5   3   2
#>   100 1   6   3
#>   200 0   3   7