メモ:Rでアソシエーション分析
association analysisは「連関分析」とか「関連分析」とか言われるけど、ややこしいので「アソシエーション分析」と呼ぶことにします。
- 資料
http://www.jstatsoft.org/v14/i15/paper
http://code.google.com/p/rattle/source/browse/trunk/src/pmml.arules.R?spec=svn660&r=647
- プログラムと結果
library("arules")
library("arulesViz")
data("Groceries")
rules <- apriori(Groceries, parameter = list(supp = 0.001, conf = 0.8))
rules_high_lift <- head(sort(rules, by="lift"), 3)
plot(rules_high_lift, method="graph", control=list(type="items"))


