t**g 发帖数: 1164 | 1 1。KEEP跟RETAIN语句有啥区别啊?
我的回答是
当sas读入下一轮数据的时候
retain的变量会保存当前值
而keep的变量则会重置?
2。MEAN函数跟MEAN proc有啥区别阿?
我的回答是mean function会自动忽略missing值
而prco mean不会?
谢谢 |
A*******s 发帖数: 3942 | 2 Are these interview questions?
I dont think the interviewer knows anything about SAS...
【在 t**g 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 1。KEEP跟RETAIN语句有啥区别啊? : 我的回答是 : 当sas读入下一轮数据的时候 : retain的变量会保存当前值 : 而keep的变量则会重置? : 2。MEAN函数跟MEAN proc有啥区别阿? : 我的回答是mean function会自动忽略missing值 : 而prco mean不会? : 谢谢
|
s*r 发帖数: 2757 | 3 one function of a statistician is to figure out what the confusion part is
and to explain complex ideas to others
【在 A*******s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : Are these interview questions? : I dont think the interviewer knows anything about SAS...
|
g**r 发帖数: 425 | 4 Do you mean the interviewee?
I think they are fair questions to ask.
【在 A*******s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : Are these interview questions? : I dont think the interviewer knows anything about SAS...
|
A*******s 发帖数: 3942 | 5 well, i think it is normal to ask questions like "when do you use retain/
keep statement" ... But the question here was like "how do you compare a car
with a spoon?"
Anyway, maybe that's because i don't have much experience on that kind of
interview questions... Or maybe the interviewer just assumes LZ is a very
beginner... Too bad he's right...
【在 g**r 的大作中提到】![](/moin_static193/solenoid/img/up.png) : Do you mean the interviewee? : I think they are fair questions to ask.
|
s**********e 发帖数: 63 | 6 Depends on the data sets and the scenarior. |
t**g 发帖数: 1164 | 7 服了
re了快10篇
就没人能真正能回答我的问题的?
car
【在 A*******s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : well, i think it is normal to ask questions like "when do you use retain/ : keep statement" ... But the question here was like "how do you compare a car : with a spoon?" : Anyway, maybe that's because i don't have much experience on that kind of : interview questions... Or maybe the interviewer just assumes LZ is a very : beginner... Too bad he's right...
|
s*r 发帖数: 2757 | 8
car
both of them can be made of steel or plastic
【在 A*******s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : well, i think it is normal to ask questions like "when do you use retain/ : keep statement" ... But the question here was like "how do you compare a car : with a spoon?" : Anyway, maybe that's because i don't have much experience on that kind of : interview questions... Or maybe the interviewer just assumes LZ is a very : beginner... Too bad he's right...
|
g**r 发帖数: 425 | 9 您这两个问题的回答,大家都不好意思给您指出来怎么错了,我来做这个坏人吧。
KEEP是告诉你你的DATA要保留多少列的。
RETAIN是在运行中,对于这个VARIABLE SAS先把这行的值保留下来,对下一行计算时,
还用这个值。所以这两个一个是行的概念一个是列的概念。
PROC MEANS是用来做一个VARIABLE(列)的均值的。
MEAN函数是用来求在一行内几个函数的均值的。
【在 t**g 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 服了 : re了快10篇 : 就没人能真正能回答我的问题的? : : car
|