Hi everyone,
I am going to perform a survival analysis (cox proportional hazard model) for an outcome (Y) that can occur each month from the starting point (discrete).
I have several independent variables that do not change from this starting point. I also have two discrete time dependent variables that change for each month.
My question is related to how I should set up the data in Excel, particularly for the discrete time dependent variables. I seem to find a lot of information on how to analyze and run the data in Stata, but nothing on how to actually construct the dataset.
Could anyone please guide me to an example dataset that fits this description? Or any other guidance as to how the dataset should look in Excel.
I am kind of new to statistics (econometrics) and Stata, so please bear with me if this is a stupid question.
Kind regards,
John Payne
I am going to perform a survival analysis (cox proportional hazard model) for an outcome (Y) that can occur each month from the starting point (discrete).
I have several independent variables that do not change from this starting point. I also have two discrete time dependent variables that change for each month.
My question is related to how I should set up the data in Excel, particularly for the discrete time dependent variables. I seem to find a lot of information on how to analyze and run the data in Stata, but nothing on how to actually construct the dataset.
Could anyone please guide me to an example dataset that fits this description? Or any other guidance as to how the dataset should look in Excel.
I am kind of new to statistics (econometrics) and Stata, so please bear with me if this is a stupid question.
Kind regards,
John Payne
Comment