Hello,
Suppose I have data as follows:
. list , clean
id s_htdate s_testdate cvd
1. 1 3/23/1992 12/30/2003 0
2. 1 3/23/1992 5/12/2004 0
3. 1 3/23/1992 5/13/2004 0
4. 1 3/23/1992 7/19/2004 1
How would I go about calculating the average time that it took before individuals developed CVD given that I am interested in the time between the htdate and the first occurence of cvd? I am interested only in those who developed CVD and its based on multiple record data.
Suppose I have data as follows:
. list , clean
id s_htdate s_testdate cvd
1. 1 3/23/1992 12/30/2003 0
2. 1 3/23/1992 5/12/2004 0
3. 1 3/23/1992 5/13/2004 0
4. 1 3/23/1992 7/19/2004 1
How would I go about calculating the average time that it took before individuals developed CVD given that I am interested in the time between the htdate and the first occurence of cvd? I am interested only in those who developed CVD and its based on multiple record data.
Comment