powered by
By iteratively removing a small portion of the data... Note that categorical data has to be in factor form.
prim(formula, data, peeling.quantile = 0.03, min.support = 0.05)
Formula with a response and terms
Data frame to find rules in
Quantile to peel off for numerical variables
Minimal size of a box to be valid
An S3 object of class prim.peel
# 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