Page 1 of 1

dummy variables in panel data for certain countries

Posted: Wed Apr 08, 2009 8:17 am
by shorty02
Hi

I'm using 43 countires with panel data for various variables. I need to put dummies on Sub-saharan and East-asian countries which are 18 out of my 43.

How do I do this considering I have put together data using 'pool generating'.

It is for 24 years by the way.

Please HELP!

Neha

Re: dummy variables in panel data for certain countries

Posted: Wed Apr 08, 2009 8:29 am
by EViews Gareth
You'll have to give some more information.

Is your workfile currently a panel workfile, or is it still a pooled workfile?

Do you have a variable that currently contains information on which region a country is in?

Re: dummy variables in panel data for certain countries

Posted: Wed Apr 08, 2009 8:38 am
by shorty02
You'll have to give some more information.

Is your workfile currently a panel workfile, or is it still a pooled workfile?

Do you have a variable that currently contains information on which region a country is in?
its a pooled workfile.

no variable that currently contains this. only things like openness, balance of payments etc for each country for each year (24 years)

Re: dummy variables in panel data for certain countries

Posted: Wed Apr 08, 2009 8:43 am
by EViews Gareth
Really the only way to do it is manually then. You could write a for loop to make it a bit faster.

Re: dummy variables in panel data for certain countries

Posted: Wed Apr 08, 2009 8:48 am
by shorty02
Really the only way to do it is manually then. You could write a for loop to make it a bit faster.
ok but when you say manually, how do you actually do it.

For example I have tried and what i did was create a new variable in the pool called d_afr_?=0 for the countries needing a dummy i put a '1' in each cell, leaving the others blank. I did another dummy for east asia I have done the same. Then include this in the regression. Is this correct?

Re: dummy variables in panel data for certain countries

Posted: Wed Apr 08, 2009 9:28 am
by EViews Gareth
Yep.

Re: dummy variables in panel data for certain countries

Posted: Wed Apr 08, 2009 9:42 am
by shorty02
thats great, thanks