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
Dummy variable
Moderators: EViews Gareth, EViews Moderator
-
quynh_nguyennz
- Posts: 25
- Joined: Tue Aug 07, 2012 4:00 am
Dummy variable
- Attachments
-
- table.WF1
- (12.24 KiB) Downloaded 483 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13586
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Dummy variable
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
-
quynh_nguyennz
- Posts: 25
- Joined: Tue Aug 07, 2012 4:00 am
Re: Dummy variable
Thank you very much
-
quynh_nguyennz
- Posts: 25
- Joined: Tue Aug 07, 2012 4:00 am
Re: Dummy variable
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
if year 2008 and year 2009 is financial crisis
if year 2010 and year 2011 is debt crisis
Thank you
Who is online
Users browsing this forum: No registered users and 2 guests
