有人可以告诉我这两个是否相同?
PROC PHREG DATA=data;
ARRAY start{*} exp_start1-exp_start100;
ARRAY stop{*} exp_STOP1-exp_STOP100;
use=0;
DO I=1 TO 100;
IF stop{I}>start{I} AND start{I}<time2event THEN use=1;
END;
MODEL time2event*censor(1)=use/risklimits covb;
RUN;
和
data _want;
data _have;
ARRAY start{*} exp_start1-exp_start100;
ARRAY stop{*} exp_STOP1-exp_STOP100;
use=0;
DO I=1 TO 100;
IF stop{I}>start{I} AND start{I}<time2event THEN use=1;
END;
run;
**PROC PHREG DATA=_want;**
MODEL time2event*censor(1)=use/risklimits covb;
RUN;
基本上,当尝试合并时间相关的协变量时,DO循环可以在PROC PHREG程序之外吗?
谢谢!