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?
Related Posts with Generating a wave (time) variable in a panel data set
-domin- (SSC): computing time /max. number of independent variablesHi everybody, I am using Stata 16.0 and I am trying to perform dominance analysis using the -domin-…
Using "lincom" after "margins"Hello. I have a question with respect to using the lincom command after the margins command. Specif…
5 year Moving AveragesHow can i calculate 5 year moving average of any country's GDP? …
How to create a percentage variableHello, I have a categorical variable for ethnicity. When I tabulate it I can see that there are pe…
Dynamic Panel ModelsHi, I try to build model in Stata with xtabond. When I should use option vce(robust)? Or when shoul…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a wave (time) variable in a panel data set
Post a Comment