Hi Stata users,
I have the data in the structure below
and would want it to be as shown below
Thanks in advance
I have the data in the structure below
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(id time) 21 5 22 3 23 2 end
and would want it to be as shown below
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(id time event) 21 1 0 21 2 0 21 3 0 21 4 0 21 5 1 22 1 0 22 2 0 22 3 1 22 4 0 22 5 0 23 1 0 23 2 1 23 3 0 23 4 0 23 5 0 end
Thanks in advance
Comment