I want to reshape my data from wide to long.
In the data (SHARE), I have variables myvar1 myvar2 myvar4 myvar5, whereby myvar3 is missing because wave 3 contained different questions (life history questions).
I use the following
This produces an error in reshaping.
There are two options that could solve this: a) for each selected variable in varlist, generate a missing myvar3, or b) an adaptation to the reshape command as this problem might be more common in other panel studies.
Does anyone have an idea about (b)?
In the data (SHARE), I have variables myvar1 myvar2 myvar4 myvar5, whereby myvar3 is missing because wave 3 contained different questions (life history questions).
I use the following
HTML Code:
reshape long `varlist', i(`ID') j(wave)
There are two options that could solve this: a) for each selected variable in varlist, generate a missing myvar3, or b) an adaptation to the reshape command as this problem might be more common in other panel studies.
Does anyone have an idea about (b)?
Comment