メモ:Rでアソシエーション分析
association analysisは「連関分析」とか「関連分析」とか言われるけど、ややこしいので「アソシエーション分析」と呼ぶことにします。
- 資料
http://www.jstatsoft.org/v14/i15/paper
http://delivery.acm.org/10.1145/2030000/2021064/p2021-hahsler.pdf?ip=133.11.102.2&CFID=39024087&CFTOKEN=44998162&__acm__=1315552947_7145b4aa73b6026288dccbd78c9acae1
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"))