Hello,
I've been wrapping my head around the following problem but could not come up to a feasible and simple solution.
Essentially, I need to go from this structure
to this one
So essentially, I need to create data for each Firm1-Firm2 combination ranging from the start year to the end year.
Would be thankful for any help.
I've been wrapping my head around the following problem but could not come up to a feasible and simple solution.
Essentially, I need to go from this structure
Code:
Firm1 Firm2 StartYear EndYear 1 2 2010 2012 1 3 2010 2013 4 5 2008 2009 5 6 2007 2007
Code:
Firm1 Firm2 Year 1 2 2010 1 2 2011 1 2 2012 1 3 2010 1 3 2011 1 3 2012 1 3 2013 4 5 2008 4 5 2009 5 6 2007
Would be thankful for any help.

Comment