Hi everyone,
Just wanted to know how to generate dates based on this data:
month1 | year1 | month2 | year2
Jan | 2008 | Feb | 2010
Jan | 2009 | Nov | 2012
Feb | 1990 | May | 2000
Mar | 1970 | dec | 1980
I want to create two new variables like these:
month1 | year1 | month2 | year2 | date1 | date2
Jan | 2008 | Feb | 2010 | jan2008 | feb2010
Jan | 2009 | Nov | 2012 | jan2009 | nov2012
Feb | 1990 | May | 2000 | feb1990 | may2000
Mar | 1970 | dec | 1980 | mar1970 | dec1980
The main idea is to create these variables in order to generate a new one with months worked, i.e. date1-date2.
Thanks!!
PD: I don´t know how to create the months-worked variable either, so if someone could tell me I would appreciate it
Related Posts with Generating dates
Help on modelling- endogeneity-panel dataHello,
I am running a model to find the effect of corurption on GDP in across Italian regions using…
Issues with Hausman-Wu testHi everyone,
I am having issues with running a Hausman-Wu test. The output is as follows:
"hausman…
Joining datasets when a variable is in a different formatHi all,
I currently have a data set that looks like this where each quarter is represented by a sep…
Local macro list and tuplesI am in need of two different tuples lists, so I would like to store one set as a local and call the…
dummy for panel dataHi,
how to create dummy variable for panel data? I want to create a dummy for 130 districts for 3 ye…
Subscribe to:
Post Comments (Atom)
0 Response to Generating dates
Post a Comment