由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 请问两道sas adv的题..
相关主题
SAS adv question.请大家帮忙看看SAS -PROC sql updat
About ID in sas[合集] 问个SAS的问题
sas adv 63题 52求教proc sql 问题
a SAS problem遇到个SAS 问题,求教
请教几个ADV问题sas大牛们这个要怎么实现呀
SAS处理Large Dataset太慢了,怎么办?one quick question about concatenating data in SAS
请问如何把一个数据里所有的变量名后面都加个v?thanks.请教一个简单SAS问题
请教SAS adv 题库一道题请教两个SAS ADV问题
相关话题的讨论汇总
话题: index话题: code话题: var话题: sas话题: 答案
进入Statistics版参与讨论
1 (共1页)
y********0
发帖数: 638
1
都是关于index的..发现自己只要是关于index的题,都是全军覆没.

1 To create a dataset with unique values of
a given varible using a data step and the
FIRST. and LAST. varaibales, it is assumed
that the input dataset is:
A.
sorted on that variable.
B.
indexed by that variable.
C.
naturally in order.
D.
any of the above A, B, or C
这个答案是A,我咋觉得AB都行啊.谁知道能给解释一下吗.
2. The SAS data set WORK.TEST has an index
on the variable Id and the following SAS
program is submitted.
data WORK.TEST;
set WORK.TEST(
keep=Id Var_1 Var_2
rename=(Id=Id_Code));
Total=sum(Var_1, Var_2);
run;
Which describes the result of
submitting the SAS program?
A.
The index on Id is deleted.
B.
The index on Id is updated as an index on Id_Code.
C.
The index on Id is deleted and an index on Id_Code is created.
D.
The index on Id is recreated as an index on Id_Code.
答案是A.
这个答案我老觉得有点故意设局的感觉.
答案是A的话,是说明index本身被删除了,还是对应的index file也给删掉了呢? 如果是
前者,
是不是说明只是删除了index,但是相应的index file给id_code了?
如果是后者,那岂不是还要给id_code重建一个index file呢?
谁能给解释一下吗? 或者online tutor里有什么东西我给漏看了?
谢谢啦.
1 (共1页)
进入Statistics版参与讨论
相关主题
请教两个SAS ADV问题请教几个ADV问题
in =option的一道题SAS处理Large Dataset太慢了,怎么办?
如何用SAS找到exact match?请问如何把一个数据里所有的变量名后面都加个v?thanks.
Re: 如何快速的将单行分成多行请教SAS adv 题库一道题
SAS adv question.请大家帮忙看看SAS -PROC sql updat
About ID in sas[合集] 问个SAS的问题
sas adv 63题 52求教proc sql 问题
a SAS problem遇到个SAS 问题,求教
相关话题的讨论汇总
话题: index话题: code话题: var话题: sas话题: 答案