Proc 表示输出数据集 [英] Proc means output data set

查看:36
本文介绍了Proc 表示输出数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从具有多个指标的 proc 均值输出数据集?下面的代码是我现在所拥有的,但不知道如何编辑它以使其正确.我想要输出数据集中的 sum,mean,ans max.

How do you output a data set from proc means with multiple metrics? The below code is what I have now but am not sure how to edit it to make it correct. I want the sum,mean,ans max in the output data set.

proc means data = blah;
output out = cool mean = sum = max=;
run;

推荐答案

proc means data=sashelp.class;
var age height weight;
output out=want mean= sum= max= /autoname;
run;

您也可以指定显式名称.

You can also specify explicit names.

output out=want mean(age)=age_mean sum(age)=age_sum;

这篇关于Proc 表示输出数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆