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)
Error in dictionary fileI have a dataset in .txt, which I have to translate with a dictionary file. I have written the dicti…
Where is the dta file for math scores of pupils in the third and fifth years from different schools in Inner London (Mortimore et al. 1988)I apologize for asking this question because I assume I am missing something obvious. Many Stata exa…
labsize in points generating strange resultPer the request of my publisher, I am going through a set of graphs and specifying text in point siz…
Assigning random number while using pre-defined observation specific probabilities (Result of an LCA) - using rdiscreteHello Statalist, As a result of an LCA I have three variables containing the probability of each ob…
Elasticity analysisHi all, I am in urgent need to find the solution of a problem. It would be great if you guys could h…
Subscribe to:
Post Comments (Atom)
0 Response to Generating years from interval (for dummy variable purposes)
Post a Comment