This may be a short post but I think one that folks will find may come in handy. I was recently asked how to calculate a difference of a variable listed in 2 rows. As a made-up example. I have 2 weight observations on some unit and I want to calculate the difference between the … Continue reading Calculating differences using DIF( ) and LAG( ) functions