dingpeng
SAS关联规则要求的数据形式是:
id product
1 a
1 c
1 e
2 d
3 a
3 b
。。。。。
但是通常的数据都是0-1矩阵格式的:
id a b c d e
1 1 0 1 0 1
。。。。。。
矩阵格式能否直接做关联规则,还是需要先整理数据?
tangyh
呵呵,关联规则不会,但是整理数据可以用proc transpose和set语句。
dingpeng
transpose除了转置矩阵功能还有什么呢?
对data 步非常不熟悉。
tangyh
可以再sas help document里面搜索 proc transponse 里面有详细的介绍。