Learn R Programming

subgroup.discovery (version 0.3.1)

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

Description

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

Usage

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

Examples

Run this code
# NOT RUN {
  data(pima)
  pima <- prim.data.prepare(pima)
  pima.model <- prim(class ~. , pima, 0.3, 0.4)
  plot(pima.model)
  summary(pima.model)
# }

Run the code above in your browser using DataLab