作者KnightX (........)
看板Statistics
标题Re: [问题] 关於SAS中群聚分析法的应用,急~~
时间Wed Oct 17 07:42:57 2007
※ 引述《KnightX (........)》之铭言:
: 不是吧! 难道是程式下不对吗?
: 你可以去看看 SAS 说明档里面 proc cluster 的例子,
: 而且若是要以经度做分群,
: 因为你的资料 longitude 里并非唯一,
: 所以你需要先为每个经度给予一个唯一的值,
: 再以他做分类,应该就可以跑出来了~!
我顺便附上程式好了
data;
no=_n_;
input longitude $ sws sst EKE current;
cards;
121 0.35 25 1400 56
.
.
.
123 0.13 30 1654 34
;
proc cluster method=centroid;
var sws sst EKE current;
id no;
proc tree horizontal;
id no;
run;
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.116.152.30