Hello,
I was wondering if it was possible to use stset with exit to run Cox models at time horizons such as 1-, 2-, and 3-years.
The idea is that some factors may not be associated with the dependent variable at certain time horizons.
Right now, the stset command looks like this:
stset end_date, id(idno) failure(dep_var==1) origin(dob) enter(date_entry)
To get stset at different time horizons, can I do something like this?
stset end_date, id(idno) failure(dep_var==1) origin(dob) enter(date_entry) exit(date_entry + (2*365.25)) /* where 2 is for 2-years, the time-horizon of interest*/
I was wondering if it was possible to use stset with exit to run Cox models at time horizons such as 1-, 2-, and 3-years.
The idea is that some factors may not be associated with the dependent variable at certain time horizons.
Right now, the stset command looks like this:
stset end_date, id(idno) failure(dep_var==1) origin(dob) enter(date_entry)
To get stset at different time horizons, can I do something like this?
stset end_date, id(idno) failure(dep_var==1) origin(dob) enter(date_entry) exit(date_entry + (2*365.25)) /* where 2 is for 2-years, the time-horizon of interest*/
Comment