I am trying to generate a new variable that calculates the difference between baseline and end of study visit. For example I have body weight (bdywt) for visit 1 and visit 5. I want to name my new variable bdywtchg. this new variable would be the difference in bdywt at visit 5 and bdywt at visit 1. Any suggestion on how to word this command?
↧