I have a panel dataset with multiple observations where I would like to regress a variable Y on the changes of variable X from 1 year to another. I know that I have to calculate the differences of the X values from t to t-1 but don't know how to implement the code in STATA. Do you have any suggestions?