Censored vs Event in Proc lifetest and Proc phreg using SAS
/*MOCK DATA*/ /*First step : Derive censored or LOA event for each subject Based on the definitions below from SAP, for example use week 96 as a cut-off */ /*The time to LOA is defined as the time from randomization to the time of first visit that the LOA criteria are met. Patients without LOA per the definition will be censored at the last observation time point. */ /* A value of 0 indicates a censored observation, while a value of 1 indicates an event. */ data survival_data; input id time status treatment $ treatment_n age genotype $; datalines; 1 5 1 Placebo 0 40 GenA 2 7 0 Placebo 0 55 GenB 3 6 1 Placebo 0 60 GenA 4 9 1 Placebo 0 50 GenC 5 4 0 Placebo 0 45 GenB 6 8 1 Placebo 0 52 GenA 7 3 1 Active 1 43 GenA 8 5 0 Active 1 46 GenB 9 6 1 Active 1 49 GenC 10 9 1 Active 1 58 GenB 11 7 0 Active 1 53 GenC 12 ...