I would be very grateful for some suggestions on how to create a case control cohort in STATA.
I have a data-set consisting of several hundred patients and several thousands of controls.
I would like to match patients to controls by age, gender and residential area (1-13) and then examine mortality in cox-regression analysis. I expect to have about 5 controls with the same gender, residential are and age as the control.
Is there a way of doing this in STATA?
I have tried using the Sttocc function and then define age as the survival time, and case-control as the outcome variable, but although this creates a case control set it is not matched as I wish.
I have read that I can stratify by age-segments, but I don't think I can stratify by age as a continuous variable.
Crossing fingers for some help.
I have a data-set consisting of several hundred patients and several thousands of controls.
I would like to match patients to controls by age, gender and residential area (1-13) and then examine mortality in cox-regression analysis. I expect to have about 5 controls with the same gender, residential are and age as the control.
Is there a way of doing this in STATA?
I have tried using the Sttocc function and then define age as the survival time, and case-control as the outcome variable, but although this creates a case control set it is not matched as I wish.
I have read that I can stratify by age-segments, but I don't think I can stratify by age as a continuous variable.
Crossing fingers for some help.
Comment