Hello everyone, when I use by or class statement in proc means with nway option, the results show two1 and two2 are different,two2 has 11 obs while two2 has 9 obs,why? the means with by statement will count missing,but means with class statement will not count missing, while both of them use nway options,Does this means the nway option doesn't work with by statement? Thanks! data a; set sashelp.class; if age=11 then age=.; run; proc sort data=a out=class1; by sex age; run; data class2; set a; run; proc means data =class1 nway noprint; by sex age; var height; output out = two1 mean=; run; proc means data =class2 nway noprint; class sex age; var height; output out = two2 mean=; run;
... View more