Page 1 of 1

Dummy variable

Posted: Tue Aug 14, 2012 5:23 pm
by quynh_nguyennz
Hi,
I have one panel data, and I want to create dummy variable
1)Eu include Greece, Portugal, spain, ireland, france, germany,
2) non Eu US, Uk, canada, australia
3 debt countries: greece, portugal, ireland, spain, ireland
4 debt crisis period from 2010- 2011
5 financial crisis from 2008- 2009
I try series dummy @recode(@year=2008 or @year=2009, 1,0)
is it different with if? In case I want to create dummy variable for financial crisis period if year=2008 and year=2009?
i tred to create dummy for countries but i fail by using the same @recode(@countries=uk or @countriesus, etc, 1,0)
this is my file in panel data
Thank you very much

Re: Dummy variable

Posted: Tue Aug 14, 2012 5:57 pm
by EViews Gareth

Code: Select all

series dum1 = 0 smpl if countries = "Greece" or countries = "Portugal" or countries = "spain" or countries = "ireland" or countries = "france" or countries = "germany" dum1 = 1 smpl @all

Re: Dummy variable

Posted: Tue Aug 14, 2012 7:48 pm
by quynh_nguyennz
Thank you very much

Re: Dummy variable

Posted: Sat Aug 18, 2012 7:23 pm
by quynh_nguyennz
could you please help me to create dummy for the financial crisis and debt crisis as well
if year 2008 and year 2009 is financial crisis
if year 2010 and year 2011 is debt crisis
Thank you