I want to generate a variable 'wave' to identify each wave in the dataset. I have the responding person identifier, but no year variable and so I need to create a wave variable to xtset (tsset) my panel (e.g. id, wave). I've searched throughout Statalist and elsewhere with no luck to date.
Can anyone kindly steer me in the right direction with the code please?
0 Response to Generating a wave (time) variable in a panel data set
Post a Comment