My data is in following format.
I want to expand the data such that each firm(i.e. gvkey) should have 5 years of pre and post rows. Can someone help with this.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long gvkey int fyear byte policy 4201 2000 0 9240 2000 1 17198 2001 0 31392 2001 1 65922 2002 0 66599 2002 1 end
Comment