Hi,
I know that the topic of linear slope calculation has been discussed before but I could not find an efficient way to create a tabulated output of Slopes for a set of Cases (i.e. Patients) for which I have varying numbers of obervations as a function of time.
Here is a screen shot of the data (mock; the actual file is attached):
Mock data for SLOPE calculation
Following the advice of previous discussions in this board, I used the Fit Y by X (Change in Measure by Time) using Patient_ID as By variable, and plotting a linear fit with intercept constrains to 0:
Ouput: 5 analyses identical to the one below:
Where I'm stuck is how to collect the Estimate of the Slope into a new table that would look like:
Patient_ID | Slope |
AAA | m1 |
BBB | m2 |
CCC | m3 |
DDD | m4 |
EEE | m5 |
Any suggestion would be welcome: I'm not attached to the original data format or the analysis method.
Thanks