楼主: 左想。
4990 3

[问答] 求助:sas中分组和分类的区别 [推广有奖]

  • 0关注
  • 0粉丝

高中生

10%

还不是VIP/贵宾

-

威望
0
论坛币
7 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
112 点
帖子
9
精华
0
在线时间
25 小时
注册时间
2014-3-22
最后登录
2018-9-30

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
新手刚学sas,一直弄不懂sas中by语句的分组与class语句的分类到底有什么区别。求各位大神指点一二,谢谢!
二维码

扫码加我 拉你入群

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

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


回帖推荐

mingfeng07 发表于3楼  查看完整内容

看这个帖子:https://bbs.pinggu.org/thread-2671959-1-1.html
沙发
irgsandy 发表于 2014-4-15 23:28:10 |只看作者 |坛友微信交流群
我记得by分类的话,结果是每组分开,没有样本整体分析。如果你有软件的话,运行一下,会发现结果的输出形式不一样。

找到了一个官方解释,看一下:
Comparison of the BY and CLASS Statements

Using the BY statement is similar to using the CLASS statement and the NWAY option in that PROC MEANS summarizes each BY group as an independent subset of the input data. Therefore, no overall summarization of the input data is available. However, unlike the CLASS statement, the BY statement requires that you previously sort BY variables.

When you use the NWAY option, PROC MEANS might encounter insufficient memory for the summarization of all the class variables. You can move some class variables to the BY statement. For maximum benefit, move class variables to the BY statement that are already sorted or that have the greatest number of unique values.

You can use the CLASS and BY statements together to analyze the data by the levels of class variables within BY groups.

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146731.htm#a000091561

使用道具

藤椅
mingfeng07 学生认证  发表于 2014-4-15 23:33:41 |只看作者 |坛友微信交流群
欢迎扫一扫我头像关注, 不定期分享SAS技术知识。

使用道具

板凳
左想。 学生认证  发表于 2014-4-16 12:57:20 |只看作者 |坛友微信交流群
mingfeng07 发表于 2014-4-15 23:33
看这个帖子:https://bbs.pinggu.org/thread-2671959-1-1.html
受教了。谢谢~~~

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-1 13:19