由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 这道sas base题目是不是有错误?还是我理解错了。。。
相关主题
help! a sas base problem[合集] Thanks so much! Re: SAS 一问. please help
新人报道,兼问SAS data set的问题A SAS problem
SAS base questionSAS问题来了
A VERY Tricky SAS question: Help Needed with Baozi[合集] SAS里如何实现LOCF(LAST OBS CARRIED FORWARD)?
SAS sampling的问题[合集] 版主帮忙看看,会SAS的都过来看看,好奇怪的SAS问题
求助,sas题目do loop 的一道题
急求~SAS高手请进,一个rolling window类的问题,在线等,非in =option的一道题
再问2道SAS advanced 题目,包子答谢。syntax errors
相关话题的讨论汇总
话题: allobs话题: sas话题: data话题: obs话题: set
进入Statistics版参与讨论
1 (共1页)
x**********t
发帖数: 45
1
题目是这样子的:
The sasdata.banks data set has five obs when the following SAS program is
submitted:
libnamesasdata 'SAS-date-library';
data allobs;
set sasdata.banks;
capital=0;
do year=2000 to 2020 by 5;
capital+((capital+2000)*rate);
output;
end;run;
proc print data=allobs;run;
How many observations will the ALLOBS data set contain?
结果是25,一头雾水啊。题目没有给sasdata.banks是个啥,这样怎么能知道allobs有
多少个呢?我怎么看都觉得是5个obs
谢谢大家指教!!
s******r
发帖数: 1524
2
sasdata.banks data set has five obs
5*5=25

【在 x**********t 的大作中提到】
: 题目是这样子的:
: The sasdata.banks data set has five obs when the following SAS program is
: submitted:
: libnamesasdata 'SAS-date-library';
: data allobs;
: set sasdata.banks;
: capital=0;
: do year=2000 to 2020 by 5;
: capital+((capital+2000)*rate);
: output;

1 (共1页)
进入Statistics版参与讨论
相关主题
syntax errorsSAS sampling的问题
Ask a SAS Base question?求助,sas题目
data reading question in SAS急求~SAS高手请进,一个rolling window类的问题,在线等,非
急了,问道SAS题,(下午考)再问2道SAS advanced 题目,包子答谢。
help! a sas base problem[合集] Thanks so much! Re: SAS 一问. please help
新人报道,兼问SAS data set的问题A SAS problem
SAS base questionSAS问题来了
A VERY Tricky SAS question: Help Needed with Baozi[合集] SAS里如何实现LOCF(LAST OBS CARRIED FORWARD)?
相关话题的讨论汇总
话题: allobs话题: sas话题: data话题: obs话题: set