由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - SAS for the beginners - data step
相关主题
ask SAS question for advance certificateSAS code
今天又“R”了 -- 感想和请教。有SAS基础,学习R需要多长时间
SAS 中match-merge两个data set的问题SAS base 50题第29题求解惑
SAS adv 130题两问,快考了,urgent###### 问个SAS存贮,显示数据的问题
关于merge data的问题!!!##问一个SAS de 问题##
再谈湾区工作,Python R及SAS求教:What is "SAS data step production"?
[合集] Thanks so much! Re: SAS 一问. please help新手问:如何STEP BY STEP 地运行SAS MACRO
求解SAS习题,谢谢[合集] 请教一个SAS 数据分配问题
相关话题的讨论汇总
话题: sas话题: what话题: put话题: data话题: step
进入Statistics版参与讨论
1 (共1页)
j********t
发帖数: 201
1
While editing SAS Base Certificate Course, I found the following program
useful to organize your base SAS knowledge by one single "run".
If you are interested, run the following program, read the log file and try
to understand all the
contents in the log using what you've learnt about SAS. The key is to
understand how
SAS operates at its data step and data step carries SAS's real power.
hints:
1) what does _all_ means? How many variables you have created yourself? and
why there are some more?
2) what does PDV mean? How does the concept help to understand the data step?
3) What signals the beginning of data step? What signals the end of the data
step? How could you use the knowledge to control your code?
4) What signals the beginning of a group? What signals the end of a group?
5) What does _n_ mean? How to explain the last value of _n_ in the log?
data one;
input name $ month income;
cards;
cleo 12 4500
peter 11 4300
peter 12 4600
;
run;
proc sort;
by name ;
run;
data two;
put 'PUT 1: ' _all_ ;
set one end=x;
by name;
put 'PUT 2: ' _all_ ;
newname = name;
put 'PUT 3: ' _all_ ;
if last.name ;
put 'PUT 4: ' _all_ ;
Run ;
proc print;
run;
Now, if you believe you understand the program very well, then think the
following question: what is the difference between "compile" and "execute",
and what SAS does at different times at data step?
j********t
发帖数: 201
2
hints for the interested:
http://vlrn.org/drupal715/?q=node/29
j********t
发帖数: 201
3
hints for the interested:
http://vlrn.org/drupal715/?q=node/29
1 (共1页)
进入Statistics版参与讨论
相关主题
[合集] 请教一个SAS 数据分配问题关于merge data的问题!!!
请推荐SAS book关于Data Step的书--包子酬谢再谈湾区工作,Python R及SAS
问一个SAS DATA 处理的问题,谢谢![合集] Thanks so much! Re: SAS 一问. please help
blank lines /sas/data step求解SAS习题,谢谢
ask SAS question for advance certificateSAS code
今天又“R”了 -- 感想和请教。有SAS基础,学习R需要多长时间
SAS 中match-merge两个data set的问题SAS base 50题第29题求解惑
SAS adv 130题两问,快考了,urgent###### 问个SAS存贮,显示数据的问题
相关话题的讨论汇总
话题: sas话题: what话题: put话题: data话题: step