天开
请问:在univariate 过程中可不可以使用重新编码的数据?
我在制作一个频数表时,把原有的数据分成十段,用重新编码的方式分的,后来用univariate过程来制作频数表,但出的结果不对,我不知道哪儿错了。
我的程序是这样的:
data a;
input x@@;
cards;
……
……
……
;
proc format;
value xf low-4='4.15' ……;
run;
proc univariate data=a freq;
format x xf.;
var x;
run;
这样的程序没有做出正确的频数表,我不知道错在什么地方。
要是用这样的程序
proc freq;
format rec recf.;
table rec;
run;
可以做出来很好频数表。
请大家指教,这是为什么。是在univariate 过程中不可以使用重新编码的数据吗?
olover
In proc univariate, the x is the analysis variable, so the output would be min, max, mean, std about x; in proc freq, rec is somehow like the class variable, so the output is about its frequency.