I have a question which might appear silly. I have hundreds of variables named *1001 and hundreds named *1003. The numbers are for two different weeks (1001 and 1003), and the wildcard stands in for many different things, such as hemoglobin levels and IL-6 levels, i e hb1001, il61001, hb1003, il61003.
In all cases the *1001 variables are the first recorded when they exist, but some patients only have measurements at week 1003 (the *1003 variables). I simply want to mass create a set of variables named *1000 with the *1001 values when they exist, and the rest with *1003. I could not find a way to perform a mass generation of variables. Forgive me for being so dim, but I have searched and googled to no avail. I would be thankful for your help.
Björn Wahlin, MD PhD
In all cases the *1001 variables are the first recorded when they exist, but some patients only have measurements at week 1003 (the *1003 variables). I simply want to mass create a set of variables named *1000 with the *1001 values when they exist, and the rest with *1003. I could not find a way to perform a mass generation of variables. Forgive me for being so dim, but I have searched and googled to no avail. I would be thankful for your help.
Björn Wahlin, MD PhD
Comment