Prev: Count data with normal random effect
Next: SAS AF question Setting the font on a TextEntry field in code
From: sas analysis on 12 Apr 2010 19:45 Hi All, I have a longitudinal dataset and would like to make sure if I am setting it correctly to run proc lifetests and phreg for each subject.. This is how my dataset looks: id outcome time Exposure x Exposure Y 1 0 0.6 1 0 1.1 1 1 1.6 1 0 0.5 2 0 1 2 0 1.6 2 0 2 2 0 2.5 3 1 0.6 3 0 1.1 3 0 1.6 4 0 2 4 1 1 4 0 1.5 The code I am using now is: proc lifetest data=x plots=survival; time TIME*outcome(0); id id; strata exposurex; run; and for the Phreg: proc phreg data=x; model TIME*outcome(0)=exposure x/risklimits; id id; run; Can anyone confirm if this is correct? Is sas reading all observation to time? Thanks!! |