I often get data of this form where x0 corresponds to the value of x1 when
month = 0 for each set within code1. This needs to be subtracted from x1 to
get a difference. Due to my lack of programming skills I have to inspect the
dataset and manually enter the values of x0 for each set of code1. I was
trying to write a do-file using if constructs to achieve this with no
success. Could somebody tell me if it is possible to program this and point
me in the correct direction. The number of results within each "code1"
varies.
list code1 month x1 x0 in 11/25