由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 123题 第87题 求解?
相关主题
do loop 的一道题a question about sas coding
nodupkey 删除的observations怎么查看?请问如何把一个数据里所有的变量名后面都加个v?thanks.
[合集] 请教一下一道sas/base题Large dataset analysis experience
请教一道SAS Base的问题用尽心思做好了一个macro
SAS base question请问两道sas adv的题..
问一个data subset的问题one quick question about concatenating data in SAS
SAS sampling的问题ask a sum function
求教 SAS base 123 Q 16A SAS problem
相关话题的讨论汇总
话题: newbank话题: sas话题: directbank
进入Statistics版参与讨论
1 (共1页)
w********y
发帖数: 371
1
name rate
firstcapital 0.0718
directbank 0.0721
virtualdirect 0.0728
the following SAS program is submitted:
data newbank;
do year=1 to 3;
set banks;
capital+5000;
end;
run;
how many observations and variables will exist in the sas dataset newbank?
A. 0 observation and 0 variable
B. 1 and 4
C. 3 and 9
D. 9 and 2
Thanks!
d******9
发帖数: 404
2
I think B is correct.
4 Vars, 1 obs.
w********y
发帖数: 371
3
我run了一下
set放在do里不太明白 为什么是name里是virtualdirect 而不是firstbank
q***s
发帖数: 17
4
/* SAS Base 123 */
/* Question 087 */
/* banks dataset */
data banks;
input name $1-13 rate;
datalines;
FirstCapital 0.0718
DirectBank 0.0721
VirtualDirect 0.0728
;
title 'banks';
proc print data=banks;
run;
/* newbank dataset */
data newbank;
do year = 1 to 3;
set banks;
capital + 5000;
end;
run;
title 'newbank';
proc print data=newbank;
run;
title;
Results newbank
Obs year name rate capital
1 4 VirtualDirect 0.0728 15000
1 (共1页)
进入Statistics版参与讨论
相关主题
[合集] SAS里如何实现LOCF(LAST OBS CARRIED FORWARD)?SAS base question
[合集] 初级傻问题,莫笑问一个data subset的问题
in =option的一道题SAS sampling的问题
Ask a SAS Base question?求教 SAS base 123 Q 16
do loop 的一道题a question about sas coding
nodupkey 删除的observations怎么查看?请问如何把一个数据里所有的变量名后面都加个v?thanks.
[合集] 请教一下一道sas/base题Large dataset analysis experience
请教一道SAS Base的问题用尽心思做好了一个macro
相关话题的讨论汇总
话题: newbank话题: sas话题: directbank