mineCARs {arulesCBA} | R Documentation |
Class Association Rules (CARs) are association rules that have only items with class values in the RHS (Liu, et al., 1998).
mineCARs(formula, data, balanceSupport = FALSE, parameter = NULL, control = NULL, ...)
formula |
A symbolic description of the model to be fitted. |
data |
An object of class |
balanceSupport |
logical; if |
parameter, control |
Optional parameter and control lists for the |
... |
Additional parameters are currently ignored. |
Returns an object of class rules
.
Michael Hahsler
Liu, B. Hsu, W. and Ma, Y (1998). Integrating Classification and Association Rule Mining. KDD'98 Proceedings of the Fourth International Conference on Knowledge Discovery and Data Mining, New York, 27-31 August. AAAI. pp. 80-86.
data("iris") iris.disc <- discretizeDF.supervised(Species ~ ., iris) iris.trans <- as(iris.disc, "transactions") # mine CARs with items for "Species" in the RHS cars <- mineCARs(Species ~ ., iris.trans, parameter = list(support = 0.3)) inspect(cars) # restrict the predictors to items starting with "Sepal" cars <- mineCARs(Species ~ Sepal, iris.trans, parameter = list(support = 0.1)) inspect(cars)