10 October 2017 3 6K Report

Hello everyone,

I have data from a longitudinal study, with each T having its own data set. There is an identifier variable for each case, in order to merge the variables into one final dataset.

However, there are some items that have their data spread across all four datasets (e.g. people would provide their age only once, but it could have been at any of the T's). I now want to merge these variables together to form a single variable (e.g. "age"). Is there a way to do that during the initial merge process? I don't want to use recode for every single variable (age is not the only one).

If I were to use the recode-into-different-variable function, is there a "if case not empty" command to just copy the values?

Thanks in advance!

Similar questions and discussions