作者aerin5168 ()
看板Statistics
标题[问题] proc tabulate无法加权
时间Thu Apr 12 12:11:45 2012
我要用tabulate作表格
proc tabulate;
class gender edu marry income;
weight count;
table gender edu marry,income*(n pctn<row*income>);
run;
但是跑出来後没有加权(可以跑但是是未加权的值),请问大家我的语法有错吗??
ps 我的加权值count有小数点,都是正值
而我用同样的方法跑卡方
proc freq;
weight count;
table (gender edu marry)*income/chisq;
run;
可以跑出加权後的值,所以weight count没有错,
请大家给予意见,为什麽tabulate跑不出来加权??
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 120.126.59.203