Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(id time num den) 1 1 2 5 1 2 4 5 1 3 1 5 1 4 2 5 1 5 0 5 2 1 5 5 2 2 1 5 2 3 5 5 2 4 3 5 2 5 2 5 3 1 0 5 3 2 0 5 3 3 3 5 3 4 1 5 3 5 4 5 4 1 2 5 4 2 3 5 4 3 5 5 4 4 3 5 4 5 2 5 5 1 4 5 5 2 5 5 5 3 2 5 5 4 3 5 5 5 4 5 end
id time num den
1 1 0 1
1 1 0 1
1 1 0 1
1 1 1 1
1 1 1 1
I don't think this is a dummy variable transformation as additional rows that expand the panel are needed. Thank you in advance for your suggestions.
0 Response to "Expanding" a count variable within a panel dataset
Post a Comment