Dear I have a dataset with the following variables: patient ID and dose. I would like to create a new variable called increase based on the Dose variable. This variable should be set to 1 when the dose in the next row (for the same patient) is higher. Example pt_ID DOSE increase 1 3 1 1 4 0 1 3 0 2 24 0 2 22 1 2 25 0 Thank in advance for any help
... View more