PROC GENMOD Error: Nesting of continuous variable not allowed
PROC GENMOD Error: Nesting of continuous variable not allowed
我正在对眼中事件的概率进行横截面逻辑回归建模。每个患者都分配有一个 PatientID,每只眼睛都分配有一个 EyeID;每个病人有 2 只眼睛。
我附上了我的代码。
PROC GENMOD data=new descend;
class patientID Explan1(ref="0") Explan2(ref ="0") Gender(ref="M") / param=ref;
model Therapy = PVD_STATUS Explan1 Explan2 Explan3 Gender/ dist=bin;
repeated subject=patientID(EyeID) / corr=unstr corrw;
run;
我收到此错误代码:错误:不允许嵌套连续变量。
这可能是与
有关的问题
repeated subject=patientID(EyeID)
有人遇到过这种情况吗?可能的解决方案?
将EyeID
设置为class变量。 SAS 假定它是连续的,除非另有定义。
PROC GENMOD data=new descend;
class EyeID patientID Explan1(ref="0") Explan2(ref ="0") Gender(ref="M") / param=ref;
model Therapy = PVD_STATUS Explan1 Explan2 Explan3 Gender/ dist=bin;
repeated subject=patientID(EyeID) / corr=unstr corrw;
run;
我正在对眼中事件的概率进行横截面逻辑回归建模。每个患者都分配有一个 PatientID,每只眼睛都分配有一个 EyeID;每个病人有 2 只眼睛。
我附上了我的代码。
PROC GENMOD data=new descend;
class patientID Explan1(ref="0") Explan2(ref ="0") Gender(ref="M") / param=ref;
model Therapy = PVD_STATUS Explan1 Explan2 Explan3 Gender/ dist=bin;
repeated subject=patientID(EyeID) / corr=unstr corrw;
run;
我收到此错误代码:错误:不允许嵌套连续变量。
这可能是与
有关的问题repeated subject=patientID(EyeID)
有人遇到过这种情况吗?可能的解决方案?
将EyeID
设置为class变量。 SAS 假定它是连续的,除非另有定义。
PROC GENMOD data=new descend;
class EyeID patientID Explan1(ref="0") Explan2(ref ="0") Gender(ref="M") / param=ref;
model Therapy = PVD_STATUS Explan1 Explan2 Explan3 Gender/ dist=bin;
repeated subject=patientID(EyeID) / corr=unstr corrw;
run;