SAS 关联规则
来源:互联网 发布:淘宝越刷排名越靠后 编辑:程序博客网 时间:2024/06/07 05:15
/* 关联规则算法的实现 *//* 读入关联数据,列代表项目集中的一个项目,行代表一个记录集,每行在某列上的值为0表示该记录集不含该项目,为1代表包含该项目 */data test; input id 1 class1 3 class2 5 class3 7 class4 9 class5 11 class6 13 class7 15 ;cards;1 0 0 1 1 0 1 02 1 0 0 1 0 1 13 0 1 1 0 1 1 04 1 1 0 1 0 1 15 0 1 1 1 0 1 06 0 0 0 1 0 1 1;run;data items2;set test;length tid 8;length item $8;tid = _n_;item = class1;output;item = class2;output;item = class3;output;item = class4;output;item = class5;output;item = class6;output;item = class7;output;keep tid item;run;proc sql;alter table items2modify item char(8);quit;/*关联分析*/proc dmdb data=items2 dmdbcat=dbcat;class tid item;run; quit;proc assoc data=items2 dmdbcat=dbcat pctsup=0.5 out=frequentItems;id tid;target item;run;proc rulegen in=frequentItems dmdbcat=dbcat out=rules minconf=80;run ;proc sort data=rules;by descending conf;run ;/*只保留结果中包含生存变量的关联规则*/data surviverules;set rules(where=(set_size>1 and (_rhand=‘Yes’ or _rhand=‘No’)));run;proc print data=surviverules;var conf support lift rule ;run ;
0 0
- SAS 关联规则
- 关联规则:R与SAS的比较
- 在SAS中进行关联规则分析
- 数据挖掘实验(SAS)关联规则挖掘
- 关联规则
- 关联规则
- 关联规则
- 关联规则
- 关联规则
- 关联规则
- 关联规则
- 关联规则
- 关联规则
- 关联规则
- 关联规则
- 关联规则
- 关联规则
- SAS中变量命名规则
- Win10 64bit安装VC6+VC6助手
- 布局
- 15. 3Sum,16. 3Sum Closest,18. 4Sum(最后一个方法重要)重要
- poj 2549 Sumsets
- 拦截导弹
- SAS 关联规则
- CF
- form表单中的lable标签
- Internet Explorer(CVE-2012-1889)暴雷漏洞分析报告【WinXP&IE8版】
- 解决Cannot change version of project facet Dynamic web module to 3.0
- Linux
- 排序算法优劣
- Hibernate使用ServiceRegistryBuilder出错
- PAT甲级1040. Longest Symmetric String (25)