楼主: hailingkatherin
2280 2

关于transpose的一个问题 [推广有奖]

  • 0关注
  • 0粉丝

硕士生

82%

还不是VIP/贵宾

-

威望
0
论坛币
277 个
通用积分
0
学术水平
1 点
热心指数
5 点
信用等级
1 点
经验
164 点
帖子
126
精华
0
在线时间
87 小时
注册时间
2015-1-18
最后登录
2016-5-15

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
Item 42
The NOTSORTED option on the BY statement cannot be used with which other statement or option?
A. SET
B. MERGE
C. IF FIRST.by-variable
D. BY GROUPFORMAT by-variable
这题选B。
是因为merge the transposed dataset不用 merge statement吗?
请大家帮忙解答谢谢!
二维码

扫码加我 拉你入群

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

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

关键词:Transpose Trans pose ans SPO cannot option

这个跟transpose木有关系
notsorted的作用是强迫by语句在有可能并没有排序的情况下执行
set纵向拼接 跟排序关系不大
if first是取第一次观测,不排序依旧可以执行(注意的是这里不排序和排序的功能完全不同。排序是取所有重复观测的第一个,不排序则是取所有连续重复观测第一个)
by groupformat的作用是by format之后的变量 not sorted依旧可用(结果和sort之后的可能不一样)
merge横行拼接 本身可以不用by 此时是按照行号拼接  如果用了by 就是按照by变量按顺序拼接,此时如果数据没有sort则会导致无法按顺序拼接

希望能帮到你

使用道具

藤椅
weifeng9011 发表于 2016-5-15 09:41:58 |只看作者 |坛友微信交流群
Merge也可以用,但是只是针对单一的satement. 多个就不行了。
可以看看这个http://www.lexjansen.com/nesug/nesug06/po/po14.pdf
The BY statement applies only to the SET, MERGE, MODIFY, or UPDATE statement that immediately precedes it in the DATA step, and only one BY statement can accompany each of these statements in a data step.

Consequently, NOTSORTED cannot be used with the MERGE statement, UPDATE statement, or when the SET statement lists more than one data set.

使用道具

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

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

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

GMT+8, 2024-4-25 02:52