In my dataset, baseline values are missing for the "ur_pot" variable. I want to fill using the value before the baseline. I would like to know how to implement this.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float patient_id byte time double urpot 1 0 . 1 3 17.8 1 6 19 1 12 . 1 18 . 1 24 32.7 1 36 19.7 1 48 19.6 2 0 . 2 3 11.7 2 6 . 2 12 11.6 2 18 12.7 2 24 13.5 2 36 11 2 48 12.8 3 0 . 3 3 5.7 3 6 5.3 3 12 6.9 3 18 5.1 3 24 5.8 3 36 7 3 48 6.5 4 0 . 4 3 9.7 4 6 10.3 4 12 . 4 18 . 4 24 . 4 36 . 4 48 . 5 0 . 5 3 17.9 5 6 12.3 5 12 . 5 18 25 5 24 16.1 5 36 10.5 5 48 . 6 0 . 6 3 17.7 6 6 11.5 6 12 16.3 6 18 12.4 6 24 17.8 6 36 13.2 6 48 12.2 7 0 . 7 3 29 7 6 24.5 7 12 22.9 7 18 . 7 24 22 7 36 25.4 7 48 24.2 8 0 . 8 3 10.2 8 6 26.9 8 12 18.4 8 18 19.2 8 24 24.1 8 36 23.2 8 48 24.9 9 0 . 9 3 5.2 9 6 14.1 9 12 22.3 9 18 11.5 9 24 10.8 9 36 17 9 48 10 10 0 . 10 3 . 10 6 . 10 12 . 10 18 . 10 24 . 10 36 10.5 10 48 7 11 0 . 11 3 16.5 11 6 14.2 11 12 15.7 11 18 14.6 11 24 15.7 11 36 13.1 11 48 16.5 12 0 . 12 3 11.5 12 6 11.8 12 12 14.2 12 18 14.1 12 24 8.7 12 36 12.9 12 48 15.3 13 0 . 13 3 10.7 13 6 13.6 13 12 15.3 end
Comment