I have data that looks like this:
where month is the number of months that have passed, vegetable is a category of interests, and n_spoiled is the number of vegetables from that category that spoiled after x amount of months.
I am interested in running a survival analysis to compare the curves for these three categories (proc lifetest).
It is my understanding that in SAS to run a survival analysis we need the 'uncollapsed' version of this data such that for example we will see 3289 entries with month=1 and potato, 9 entries with month=1 and onion and so on. None of this entries would need to censored for the analysis as all non-completions were omitted form the aggregated data.
I would really appreciate if someone could help me modify the data so that it runs OR alternatively, instruct me as to how to run the test without 'uncollapsing' the data.
Thank you.