由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 再请教一个sas问题
相关主题
overall mean in sas for several variables[合集] 问个SAS入门级的问题
求高人指点一个SAS数据的转换问题SAS数据输入疑问
sas questionSAS 数据读入的问题 (proc import)
怎样算一个variable前5个值的mean【求助】问一个SAS编程的问题,谢谢大家
如何比较两个proc contents的结果?请教一个SAS 数据读入的问题
SAS Macro 问题请教 。。。请教SAS问题
sas question请教一sas code
急问一个SAS 的常见问题SAS菜鸟求助,请好心达人帮个忙解决一个SAS问题
相关话题的讨论汇总
话题: mean话题: sas话题: retain话题: keep话题: questions
进入Statistics版参与讨论
1 (共1页)
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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 服了
: re了快10篇
: 就没人能真正能回答我的问题的?
:
: car

1 (共1页)
进入Statistics版参与讨论
相关主题
SAS菜鸟求助,请好心达人帮个忙解决一个SAS问题如何比较两个proc contents的结果?
SAS helpSAS Macro 问题请教 。。。
问个SAS 数据处理问题sas question
问个简单的SAS如何找出某个变量最大之所在的行?急问一个SAS 的常见问题
overall mean in sas for several variables[合集] 问个SAS入门级的问题
求高人指点一个SAS数据的转换问题SAS数据输入疑问
sas questionSAS 数据读入的问题 (proc import)
怎样算一个variable前5个值的mean【求助】问一个SAS编程的问题,谢谢大家
相关话题的讨论汇总
话题: mean话题: sas话题: retain话题: keep话题: questions