Hello Stata people;
I have this data at hand currently:
What I want to do is transform the "date" variable in order to be able to apply the "tsset" command and draw a time grapgh of the other tow variables "Euro zone" and "USA".
With many thanks!
I have this data at hand currently:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str10 date float(eurozone usa) "31/01/2010" .8 1.6 "28/02/2010" .8 1.3 "31/03/2010" 1.1 1.1 "30/04/2010" .9 .9 "31/05/2010" .9 .9 "30/06/2010" 1 .9 "31/07/2010" 1 .9 "31/08/2010" 1 .9 "30/09/2010" 1.2 .8 "31/10/2010" 1.1 .6 "30/11/2010" 1.1 .8 "31/12/2010" 1.1 .8 "31/01/2011" 1.1 1 "28/02/2011" 1 1.1 "31/03/2011" 1.3 1.2 "30/04/2011" 1.6 1.3 "31/05/2011" 1.5 1.5 "30/06/2011" 1.5 1.6 "31/07/2011" 1.2 1.8 "31/08/2011" 1.2 2 "30/09/2011" 1.6 2 "31/10/2011" 1.6 2.1 "30/11/2011" 1.6 2.2 "31/12/2011" 1.6 2.2 "31/01/2012" 1.5 2.3 "29/02/2012" 1.5 2.2 "31/03/2012" 1.6 2.3 "30/04/2012" 1.6 2.3 "31/05/2012" 1.6 2.3 "30/06/2012" 1.6 2.2 "31/07/2012" 1.7 2.1 "31/08/2012" 1.5 1.9 "30/09/2012" 1.5 2 "31/10/2012" 1.5 2 "30/11/2012" 1.4 1.9 "31/12/2012" 1.5 1.9 "31/01/2013" 1.3 1.9 "28/02/2013" 1.3 2 "31/03/2013" 1.5 1.9 "30/04/2013" 1 1.7 "31/05/2013" 1.2 1.7 "30/06/2013" 1.2 1.6 "31/07/2013" 1.1 1.7 "31/08/2013" 1.1 1.8 "30/09/2013" 1 1.7 "31/10/2013" .8 1.7 "30/11/2013" 1 1.7 "31/12/2013" .7 1.7 "31/01/2014" .8 1.6 "28/02/2014" 1 1.6 "31/03/2014" .7 1.7 "30/04/2014" 1 1.8 "31/05/2014" .7 2 "30/06/2014" .8 1.9 "31/07/2014" .8 1.9 "31/08/2014" .9 1.7 "30/09/2014" .8 1.7 "31/10/2014" .7 1.8 "30/11/2014" .7 1.7 "31/12/2014" .7 1.6 "31/01/2015" .6 1.6 "28/02/2015" .7 1.7 "31/03/2015" .6 1.8 "30/04/2015" .9 1.8 "31/05/2015" 1.3 1.7 "30/06/2015" 1.2 1.8 "31/07/2015" 1.4 1.8 "31/08/2015" 1.4 1.8 "30/09/2015" 1.3 1.9 "31/10/2015" 1.5 1.9 "30/11/2015" .9 2 "31/12/2015" .9 2.1 "31/01/2016" 1 2.2 "29/02/2016" .9 2.3 "31/03/2016" 1 2.2 "30/04/2016" .7 2.1 "31/05/2016" .8 2.2 "30/06/2016" .8 2.2 "31/07/2016" .9 2.2 "31/08/2016" .8 2.3 "30/09/2016" .8 2.2 "31/10/2016" .7 2.1 "30/11/2016" .8 2.1 "31/12/2016" .9 2.2 "31/01/2017" .9 2.3 "28/02/2017" .8 2.2 "31/03/2017" .7 2 "30/04/2017" 1.3 1.9 "31/05/2017" .9 1.7 "30/06/2017" 1.2 1.7 "31/07/2017" 1.2 1.7 "31/08/2017" 1.2 1.7 "30/09/2017" 1.2 1.7 "31/10/2017" .9 1.8 "30/11/2017" .9 1.7 "31/12/2017" .9 1.8 "31/01/2018" 1 1.8 "28/02/2018" 1 1.8 "31/03/2018" 1.1 2.1 "30/04/2018" .7 2.1 end
With many thanks!
Comment