Code:
. reshape long @hgsex @mrcurr @edhigh1, i(id p_id wave) j(_j) string (note: j = g p_ q_) (note: ghgsex not found) (note: gedhigh1 not found) Data wide -> long ----------------------------------------------------------------------------- Number of obs. 78919 -> 236757 Number of variables 474 -> 471 j variable (3 values) -> _j xij variables: ghgsex p_hgsex q_hgsex -> hgsex gmrcurr p_mrcurr q_mrcurr -> mrcurr gedhigh1 p_edhigh1 q_edhigh1 -> edhigh1 -----------------------------------------------------------------------------
The result is that the reshape command tried to create observations of not only for the prefixes p_ and q_ but also for the prefix g, and (since ghgsex and gedhigh1 do not exist) filled hgsex and edhigh1 with missing values for _j=="g".
For now, my advice is to add
Code:
rename gmrcurr gmrcurrX
Leave a comment: