Hi, My cox model includes a time-dependent variable. I tried different ways to define the variable in proc phreg procedure (after model statement) but got very different results. Please help me! The first way, I defined 0 first and else=1 and got hazard ration of .47 which made sense. if daystorept2-daystochcntc=. or daystorept2-daystochcntc>30 then cntc30chldadj=0; else cntc30chldadj=1; The second way, i defined 1 first and else=0 and got HR=5.6 which totally did not make sense. if 0<=daystorept2-daystochcntc <= 30 then cntc30chld=1; else cntc30chld=0; I checked frequencies of the two variables and they are exactly the same. So why did I get so different results. Anyone know? How does SAS process the statement in proc phreg? Thank you!
... View more