【SAS NOTE】MEANS
1 data mysas.ifthen11; 2 infile 'e:\ifthen.txt' firstobs=2; 3 input date yymmn6. gtone shen dong all; 4 year=year(date); 5 run; 6 proc means data=mysas.ifthen11 max min n nmiss sum range ; 7 by year; 8 where year(date)<=2011; 9 run;
means过程很适合统计月度或年度数据。在常规分析中会经常用到。
其中by字句做归类,where 做筛选。