Dummy variable

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

quynh_nguyennz
Posts: 25
Joined: Tue Aug 07, 2012 4:00 am

Dummy variable

Postby quynh_nguyennz » Tue Aug 14, 2012 5:23 pm

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
Attachments
table.WF1
(12.24 KiB) Downloaded 482 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: Dummy variable

Postby EViews Gareth » Tue Aug 14, 2012 5:57 pm

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

Postby quynh_nguyennz » Tue Aug 14, 2012 7:48 pm

Thank you very much

quynh_nguyennz
Posts: 25
Joined: Tue Aug 07, 2012 4:00 am

Re: Dummy variable

Postby quynh_nguyennz » Sat Aug 18, 2012 7:23 pm

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


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests