邓贵大 发表于 2013-10-2 22:38
data a;
input class1 $ class2 $ count @@;
cards;
Hi Deng,
I have meet some problem when use this part of code.
The dataset you can find in attachment are not correctly sorted by proc means.
Maybe I use wrong option or keep wrong observation.
The result show that :
The second observation by Class 1 (the first col) value 117 didn't list in the first place.
So ,please tell me.. Thank you :)
The code I use as this:
- proc means data=out.a order=freq nway noprint;
- class AEBODSYS AEDECOD;
- freq count8;
- output out=b;
- run;
复制代码
10/11 19:12
Maybe I find the problem.
When use proc means, the class class1 both include only class1's sum count and include class1's all sub-count.
So, N(class1) 96 + N(class2 sum) 91 > I(class1) 117 + I(class2 sum) 64