Learn R Programming

clubpro (version 0.6.1)

predict.clubprofit: Predicted category for each observation.

Description

Predicted category for each observation.

Usage

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

Value

a table

Arguments

object

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

...

ignored

Details

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

Examples

Run this code
mod <- club(rate ~ dose, data = caffeine)
predict(mod)

Run the code above in your browser using DataLab