由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - question on SAS macro (many thanks!!)
相关主题
急问一个SAS 的常见问题sas question
SAS macro variable resolution questionSAS 问题求助 -- create new variable
急问:SAS batch submission with macro variable求助:一个SAS小程序
SAS Macro 问题请教 。。。SAS variable +(-1) 是什么意思?
Re: SAS help : How to use Macro to select procedursPlease help with a SAS macro
question about using sas macro variable and do loop[合集] 问个SAS的问题
%do questions请教一个SAS Macro问题。谢谢
SAS Base 50题中的30和33题疑问请教SAS code: 怎么把macro里的macro variable打印出来?
相关话题的讨论汇总
话题: y1话题: sas话题: want话题: check话题: y3
进入Statistics版参与讨论
1 (共1页)
z**o
发帖数: 149
1
For data a1:
data a1;
input x$ y1 y2 y3 y4;
datalines;
1 2 1 2 3
2 4 2 5 8
3 6 9 7 8
4 8 4 6 5
;
want to check if y1-yx =1 or not:
for _n_=1, I want to check if y1=1;
for _n_=2, I want to check if y1-y2=1;
for _n_=3, I want to check if y1-y3=1;
is there a way to put a value of one variable into another variable name?
like: array y(*) y1-y&x.; ?
Thanks a lot for BIG NIU!!
1 (共1页)
进入Statistics版参与讨论
相关主题
请教SAS code: 怎么把macro里的macro variable打印出来?Re: SAS help : How to use Macro to select procedurs
[合集] sas advance questionquestion about using sas macro variable and do loop
请教SAS/MACRO牛人%do questions
SAS问题请教SAS Base 50题中的30和33题疑问
急问一个SAS 的常见问题sas question
SAS macro variable resolution questionSAS 问题求助 -- create new variable
急问:SAS batch submission with macro variable求助:一个SAS小程序
SAS Macro 问题请教 。。。SAS variable +(-1) 是什么意思?
相关话题的讨论汇总
话题: y1话题: sas话题: want话题: check话题: y3