【问题标题】:PROC GENMOD Error: Nesting of continuous variable not allowedPROC GENMOD 错误:不允许嵌套连续变量
【发布时间】:2018-01-03 13:40:57
【问题描述】:

我正在对眼睛中发生事件的概率进行横截面逻辑回归建模。为每位患者分配一个 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)

有没有人遇到过这种情况?可能的解决方案?

【问题讨论】:

    标签: sas regression bioinformatics logistic-regression


    【解决方案1】:

    EyeID 设置为类变量。除非另有定义,否则 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;
    

    【讨论】:

      猜你喜欢
      • 2018-12-06
      • 2018-01-14
      • 1970-01-01
      • 2015-02-14
      • 2022-11-19
      • 1970-01-01
      • 2018-02-13
      • 2021-03-03
      • 1970-01-01
      相关资源
      最近更新 更多