Dear all,
I have asked this question before but wasn't able to succeed.
Here is a brief version of what I have:
Where ID is the patient ID (n ~ 500); Time is the follow-up time (in years) for each patient; and Metrics A to Z are 26 parameters I collected from these patients over time.
I would like to regress (OLS) each parameter over time and obtain the (i) coefficients, (ii) SE, and (iii) P-values for each patient and each parameter, which I'd like to save as new columns in my database (i.e.: 26 parameters x 3 statistics = 78 new columns).
I would really appreciate any suggestions here.
Thanks again!!
J
I have asked this question before but wasn't able to succeed.
Here is a brief version of what I have:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str4 ID float(Time MetricA MetricB) "NY01" 0 10 110 "NY01" .5 11 120 "NY01" 1 14 130 "NY01" 1.5 15 135 "NY02" 0 13 140 "NY02" .5 14 145 "NY02" 1 14 150 "NY02" 1.5 16 160 "NY02" 2 17 175 end
Where ID is the patient ID (n ~ 500); Time is the follow-up time (in years) for each patient; and Metrics A to Z are 26 parameters I collected from these patients over time.
I would like to regress (OLS) each parameter over time and obtain the (i) coefficients, (ii) SE, and (iii) P-values for each patient and each parameter, which I'd like to save as new columns in my database (i.e.: 26 parameters x 3 statistics = 78 new columns).
I would really appreciate any suggestions here.
Thanks again!!
J
Comment