如何从proc手段输出具有多个指标的数据集?下面的代码是我现在拥有的,但不知道如何编辑它以使其正确。我想要输出数据集中的sum,mean,ans max。
proc means data = blah;
output out = cool mean = sum = max=;
run;
答案 0 :(得分:2)
proc means data=sashelp.class;
var age height weight;
output out=want mean= sum= max= /autoname;
run;
您还可以指定显式名称。
output out=want mean(age)=age_mean sum(age)=age_sum;