I am a beginning SAS programmer, and I have patient lab data that is on one line, but their diagnosis data is on the next line. How do I indicate to SAS when doing FREQ, Logistic, Univariate, etc. that they are the same patient? Can I do this in the data step?
Although they are on multiple lines, they have the same patient_ID. I would like to put the patient that is on different lines, onto the same line for analysis purposes.
patient_id labs disease
1 high
1 celiac
2 low
2 T1DM
Thanks!