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)
How to solve error "estimation result constrained not found" in lrtest commandHi everyone! I've run the following syntaxes to compute the global test of the parallel lines assump…
IVProbit for % Dependent Variable with Quadratic Endogenous RegressorHello, After reading through online sources including here with @Jeff Wooldridge, Richard Williams …
Merging household census data for logistic regressionGood evening everyone, First, I'd like to say thank you to all of these helpful users from which I …
MI & GSEMMorning, I am looking to run a path analysis (two variables measured at two time points) using gsem…
Collapse to obtain mean, p25 and p75Hello, I need to collapse my dataset for a forestplot which will illustrate heterogeneity in outcom…
Subscribe to:
Post Comments (Atom)
0 Response to Generating years from interval (for dummy variable purposes)
Post a Comment