Hello,
I need to perform incidence density sampling using the following dataset. I have a dataset with patient information: example shown below. There are people who are hospitalized and acquire disease X after certain days of hospitalization.
I need to perform 1:3 matching for cases and control based on length of stay (LOS) and admission month. I need to include people who later got the disease but were disease free until certain time, as controls for other cases with same LOS. Thank you.
** Example generated by -dataex-. For more info, type help dataex
clear
input float(case LOS_total_days adm_month Person_visit_ID)
0 9.3 8 3
0 9.3 8 3
0 38.4 3 7
0 38.4 3 7
0 38.4 3 7
0 38.4 3 7
0 6.4 2 8
0 6.4 2 8
0 4.7 9 10
0 10.9 7 17
0 10.9 7 17
0 10.9 7 17
0 32 2 21
0 32 2 21
I need to perform incidence density sampling using the following dataset. I have a dataset with patient information: example shown below. There are people who are hospitalized and acquire disease X after certain days of hospitalization.
I need to perform 1:3 matching for cases and control based on length of stay (LOS) and admission month. I need to include people who later got the disease but were disease free until certain time, as controls for other cases with same LOS. Thank you.
** Example generated by -dataex-. For more info, type help dataex
clear
input float(case LOS_total_days adm_month Person_visit_ID)
0 9.3 8 3
0 9.3 8 3
0 38.4 3 7
0 38.4 3 7
0 38.4 3 7
0 38.4 3 7
0 6.4 2 8
0 6.4 2 8
0 4.7 9 10
0 10.9 7 17
0 10.9 7 17
0 10.9 7 17
0 32 2 21
0 32 2 21
Comment