Skip to contents

Chance value.

Usage

cval(m)

Arguments

m

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

Value

a numeric value.

Details

Compute the chance that randomly reordered data results in a percentage of correctly classified observations at least as high as the observed data.

Examples

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