e*******e 发帖数: 75 | 1 我再用survival analysis 作分析的时候,用了下面的程序却发现问题:
%macro eun5(var1,var2,var3,var4,var5,var1T,var2T,var3T,var4T,var5T);
PROC PHREG DATA=ONE;
MODEL SURV*CENSOR(1)= &VAR1 &VAR2 &VAR3 &VAR4 &VAR5 &VAR1T &VAR2T &VAR3T &
VAR4T &VAR5T;
&VAR1=VAR1*LOG(SURV);
&VAR2=VAR2*LOG(SURV);
&VAR3=VAR3*LOG(SURV);
&VAR4=VAR4*LOG(SURV);
&VAR5=VAR5*LOG(SURV);
PROPORTIONALITY_TEST: TEST &VAR1T, &VAR2T, &VAR3T, &VAR4T, &VAR5T;
%MEND;
%EUN5 (YR1,YR2,YR3,YR4,YR5,YR1T,YR2T,YR3T,YR4T,YR5T);
最后总是出现:
error: variable var5 is not found | p********a 发帖数: 5352 | 2 &VAR1=VAR1*LOG(SURV);
shouldn't it be &VAR1=&VAR1*LOG(SURV); ? | e*******e 发帖数: 75 | 3 不好意思,那个是typo, 我的程序里是 &var1 ...&var5,
还是出现同样的问题, 到底出了什么问题呢? 谢谢 | r********0 发帖数: 22 | 4 let me guess, Var1-5 are the main effects, VAR1T-5T are the names you would
like to assign to the time-dependent variables. Shouldn't the programming
statemnet be &VARxT=&VARx*log(surv)?
【在 e*******e 的大作中提到】 : 我再用survival analysis 作分析的时候,用了下面的程序却发现问题: : %macro eun5(var1,var2,var3,var4,var5,var1T,var2T,var3T,var4T,var5T); : PROC PHREG DATA=ONE; : MODEL SURV*CENSOR(1)= &VAR1 &VAR2 &VAR3 &VAR4 &VAR5 &VAR1T &VAR2T &VAR3T & : VAR4T &VAR5T; : &VAR1=VAR1*LOG(SURV); : &VAR2=VAR2*LOG(SURV); : &VAR3=VAR3*LOG(SURV); : &VAR4=VAR4*LOG(SURV); : &VAR5=VAR5*LOG(SURV);
|
|