由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - [合集] what's wrong with my codes?
相关主题
Python:请问如何把list变成structured array。 (转载)该送什么样的SAS code呢?
求教一个sas读data的问题ON-SITE面试要进行SAS EXAM,请问该如何准备?
how to transfer a SAS dataset into a 2-dimention arraySAS CODE求助
how to write a series of variables Q29B4B-Q29B30B in array ?sas code 求助,如何把在另一个dataset 的id delete掉
SAS array 一问[合集] how many ways can we deal with missing values?
请教一个SAS ARRAY的问题[合集] help please! A sas question
a question about sas coding[合集] how to start sas in linux
SAS一问[合集] use SAS to generate descriptive statistics for variable
相关话题的讨论汇总
话题: numhos话题: y3话题: y1话题: x3话题: x1
进入Statistics版参与讨论
1 (共1页)
o******6
发帖数: 538
1
☆─────────────────────────────────────☆
liuyali (dilly) 于 (Tue Mar 11 04:03:43 2008) 提到:
data a;
input id x1-x3 y1-y3 numhos;
cards;
1 1 2 3 4 4 4 3
2 1 2 3 4 5 6 3
;run;
data b;
set a;
array x x1-x3;
array y y1-y3;
do i=1 to numhos;
if y(i)=y(i+1) then put x(i) ' ' y(i) ' ' x(i+1) ' ' y(i+1);
if y(i)~=y(i+1) then do;y(i)=y(i)-1;
end;
end;run;
I know that when numhos=3, i+1=4, this is not right. But at least, sas
should create dataset.
Anyone has idea?
thanks
☆──────────────────────────────
1 (共1页)
进入Statistics版参与讨论
相关主题
[合集] use SAS to generate descriptive statistics for variableSAS array 一问
[合集] help~~~~~~~plz请教一个SAS ARRAY的问题
从大data 产生多个小data 的方法a question about sas coding
发包子求大牛解SAS问题,急SAS一问
Python:请问如何把list变成structured array。 (转载)该送什么样的SAS code呢?
求教一个sas读data的问题ON-SITE面试要进行SAS EXAM,请问该如何准备?
how to transfer a SAS dataset into a 2-dimention arraySAS CODE求助
how to write a series of variables Q29B4B-Q29B30B in array ?sas code 求助,如何把在另一个dataset 的id delete掉
相关话题的讨论汇总
话题: numhos话题: y3话题: y1话题: x3话题: x1