Hello everyone,
I have duplicated data from patients with multiple sclerosis, and I need to perform a calculation to determine a change that is sustained over time, equal to or greater than 1. If the change happens between time 1 and 2 but is not sustained between time 2 and 3, it is not suitable for my analysis.
Thank you very much!
I have duplicated data from patients with multiple sclerosis, and I need to perform a calculation to determine a change that is sustained over time, equal to or greater than 1. If the change happens between time 1 and 2 but is not sustained between time 2 and 3, it is not suitable for my analysis.
Thank you very much!
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float id byte time double edss_ float dif 1 0 4 . 2 6 5 1 3 12 5.5 .5 4 18 5.5 0 5 24 6 .5 6 30 6 0 7 36 6 0 1 0 6.5 . 2 6 6.5 0 3 12 6.5 0 4 18 7 .5 5 24 7 0 6 30 . . 7 36 . . 1 0 1 . 2 6 1 0 3 12 1 0 4 18 1 0 5 24 1.5 .5 6 30 1.5 0 7 36 1.5 0 1 0 5 . 2 6 6 1 3 12 . . 4 18 . . 5 24 . . 6 30 . . 7 36 . . 1 0 7 . 2 6 7 0 3 12 7.5 .5 4 18 7.5 0 5 24 7.5 0 6 30 7.5 0 7 36 7.5 0 1 0 4 . 2 6 4.5 .5 3 12 5 .5 4 18 5 0 5 24 5 0 6 30 5 0 7 36 5 0 1 0 6.5 . 2 6 6.5 0 3 12 6.5 0 4 18 6.5 0 5 24 6.5 0 6 30 6.5 0 7 36 . . 1 0 6 . 2 6 5 -1 3 12 5 0 4 18 5 0 5 24 5 0 6 30 5 0 7 36 5 0 1 0 6 . 2 6 6 0 3 12 6 0 4 18 . . 5 24 . . 6 30 . . 7 36 . . 1 0 6 . 2 6 5 -1 3 12 5 0 4 18 4.5 -.5 5 24 4.5 0 6 30 4.5 0 7 36 4.5 0 1 0 6 . 2 6 6 0 3 12 5.5 -.5 4 18 5.5 0 5 24 4 -1.5 6 30 6 2 7 36 6 0 1 0 4 . 2 6 3 -1 3 12 4 1 4 18 4 0 5 24 4 0 6 30 4 0 7 36 6 2 1 0 6 . 2 6 6 0 3 12 6.5 .5 4 18 6.5 0 5 24 6.5 0 6 30 6.5 0 7 36 6.5 0 1 0 6 . 2 6 6 0 3 12 6 0 4 18 6 0 5 24 6 0 6 30 6 0 7 36 6 0 1 0 7 . 2 6 7 0 end
Comment