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
VAR, test for normality, autocorrelation and heteroskedasticity- should I use stationary first differences for these tests? Please help!HI, I am checking thhe long-term relationship between unemployment and labor force participation rat…
How to interpret significance level of ATT result from psmatch2 command?Dear Statalists, I got results from psmatch2 command as below. Could you please tell me where to lo…
multiple imputationHi all, I have 84 continuous variables with many of them having some missing values. i am using the …
Looking for options on labelling ciplotI'm trying to create a Figure with 2 panels by combining 4 separate ciplot estimates into a single f…
creating multiple histograms using a loopHi all, i have 26 variables that i have log transformed using the code below. Code: foreach var of…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a wave (time) variable in a panel data set
Post a Comment