Dear Stata user, I want to do following things:
1) To estimate mean of study time if died==1 (1 if patient died) over the same age group, similarly if died==0. Please note that i want to restrict my analysis between age group 50 to 65, where i have 16 data point.
2) In the second stage, i want to find out correlation of the generated mean (16 data point, i.e mean value) between if died==0 and died==1
For data set you can download using following code:
sysuse cancer.dta
How to write the loop code to do this exercise? Please suggest me.
1) To estimate mean of study time if died==1 (1 if patient died) over the same age group, similarly if died==0. Please note that i want to restrict my analysis between age group 50 to 65, where i have 16 data point.
2) In the second stage, i want to find out correlation of the generated mean (16 data point, i.e mean value) between if died==0 and died==1
For data set you can download using following code:
sysuse cancer.dta
How to write the loop code to do this exercise? Please suggest me.
Comment