Array
I've a data set as show above. The cikcode represents individual companies and i have the start year and end year for a certain event/activity. The start and end years are not continuous and have intervals as well. For eg. For cikcode 1961, one event is from 2007-2008 and the other one is ffrom 2013-2014. So i want years to be 2007 2008 2013 and 2014 like shown in the last column. How do I do it in stata as my data set is pretty big and have thousands of observations. I want it for each cikcode.
Thank you in adance!
Related Posts with Generating years from interval (for dummy variable purposes)
Subgroup within id variable for panel dataI have panel data with an id variable for each person, I want to generate a subgroup identifier base…
how to predict technical efficiency after estimating a true random effcet model.Dear All, I am running a true random effcetmodel, which accounts hetroscedasticity using the sfpanel…
Stata equation for medical toolGood day everyone, I have a strange request/question but I have no where to ask. I am a physician wh…
Exporting DF-GLS and Phillips-Perron Unit root tests into LatexHi, I have done some preliminary unit root tests for some of the variables but I find it extremely …
Trouble with Dummy VariablesHi, I currently have data on recycling rates for different local authorities in the UK and would li…
Subscribe to:
Post Comments (Atom)
0 Response to Generating years from interval (for dummy variable purposes)
Post a Comment