Data management question: I am working on a longitudinal and registry-based project involving children and adolescents with type 1 diabetes. Each participant has an ID#, date of birth (DOB), many different independent variables, an outcome / dependent variable (HbA1c) and a "status_date" (day-month-year) which is the date when the HbA1c value was measured. My "status_date" variable is not a string variable. My task = If there are two or more HbA1c over the period of a year (e.g., 2015), then I should only use the HbA1c value closest to the participant's DOB. Does anybody have advice on which set of Stata commands to use?
-
Login or Register
- Log in with
Comment