dummy variables in panel data for certain countries

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

shorty02
Posts: 4
Joined: Wed Apr 08, 2009 8:06 am

dummy variables in panel data for certain countries

Postby shorty02 » Wed Apr 08, 2009 8:17 am

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

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

Re: dummy variables in panel data for certain countries

Postby EViews Gareth » Wed Apr 08, 2009 8:29 am

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?

shorty02
Posts: 4
Joined: Wed Apr 08, 2009 8:06 am

Re: dummy variables in panel data for certain countries

Postby shorty02 » Wed Apr 08, 2009 8:38 am

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)

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

Re: dummy variables in panel data for certain countries

Postby EViews Gareth » Wed Apr 08, 2009 8:43 am

Really the only way to do it is manually then. You could write a for loop to make it a bit faster.

shorty02
Posts: 4
Joined: Wed Apr 08, 2009 8:06 am

Re: dummy variables in panel data for certain countries

Postby shorty02 » Wed Apr 08, 2009 8:48 am

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?

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

Re: dummy variables in panel data for certain countries

Postby EViews Gareth » Wed Apr 08, 2009 9:28 am

Yep.

shorty02
Posts: 4
Joined: Wed Apr 08, 2009 8:06 am

Re: dummy variables in panel data for certain countries

Postby shorty02 » Wed Apr 08, 2009 9:42 am

thats great, thanks


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests