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
Computing Standard Deviation of annual returns over three years.Hello everyone, For my Replication Study, I am replicating a study for which I need the variable 'R…
Create a dummy variable that equals 1 if the compensation committee is comprised wholly of independent directorsHi everyone, I am new to the stata forum and I have some questions. To run my regression, I need som…
split, parse(,) maximum number of variables reachedDear all, I'm using Stata 15 and trying to split a string variable into different component which ar…
Categorizing Patients by Diagnosis CodesHi, I have patient-level data with diagnosis codes. I need to use the category of diagnosis codes as…
forval returning error stating ambiguous abbreviation for variables b_01 and b_11I have a set of variables labelled b_01, b_02, b_03.....b_11, b_12, ....b_20 and similarly another s…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a wave (time) variable in a panel data set
Post a Comment