楼主: 孤灯渡漠
13711 5

proc summary 列出变量的问题 [推广有奖]

  • 0关注
  • 0粉丝

本科生

52%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
993 点
帖子
82
精华
0
在线时间
61 小时
注册时间
2009-11-24
最后登录
2021-8-5

楼主
孤灯渡漠 发表于 2014-5-20 16:14:10 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
proc summary中的var 和output 都需要把变量一一列出
如果我的数据集变量很多,一一列出很麻烦
变量其命名又不是很规律,无法用A1-A20的方式列出

那有没有简单的指定所有变量的方法???
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Summary Summa Mary Mar ROC 命名

沙发
zhengbo8 发表于 2014-5-20 18:05:18
  1. proc summary data=sashelp.class;
  2. var _numeric_;
  3. output out=a;
  4. run;
复制代码

藤椅
bobguy 发表于 2014-5-23 08:00:55
Use proc contents to list all variables and select it from there.

板凳
jingju11 发表于 2014-5-24 11:40:23
zhengbo8 发表于 2014-5-20 18:05
It is a good answer.
Moreover, it is also curious to know why using summary procedure instead of means procedure? Both are available from SAS/Base. Some people may think they are identical; in fact, not fully the same. According to my experiences, MEANS completely covers SUMMARY, but not true vice versa.In fact, SAS does not even give a direct documentation for SUMMARY but try to use the one for MEANS instead.
JingJu


已有 1 人评分学术水平 热心指数 信用等级 收起 理由
hello_fj + 1 + 1 + 1 观点有启发

总评分: 学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

报纸
孤灯渡漠 发表于 2014-6-28 16:43:57
非常感谢楼上们,人大sas真是好地方

地板
稳姐 发表于 2014-7-22 17:38:20
_numeric_很实用

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-17 04:19