prim: Find the optimal sub-box using the PRIM peeling strategy

Description Usage Arguments Value Author(s) Examples

Description

By iteratively removing a small portion of the data... Note that categorical data has to be in factor form.

Usage

1
prim(formula, data, peeling.quantile = 0.03, min.support = 0.05)

Arguments

formula

Formula with a response and terms

data

Data frame to find rules in

peeling.quantile

Quantile to peel off for numerical variables

min.support

Minimal size of a box to be valid

Value

An S3 object of class prim.peel

Author(s)

Jurian Baas

Examples

1
2
3
4
5
  data(pima)
  pima <- prim.data.prepare(pima)
  pima.model <- prim(class ~. , pima, 0.3, 0.4)
  plot(pima.model)
  summary(pima.model)

subgroup.discovery documentation built on Feb. 4, 2020, 9:11 a.m.