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
dummy variables in panel data for certain countries
Moderators: EViews Gareth, EViews Moderator
-
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
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?
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
its a pooled workfile.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?
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
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
ok but when you say manually, how do you actually do it.Really the only way to do it is manually then. You could write a for loop to make it a bit faster.
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
thats great, thanks
Who is online
Users browsing this forum: No registered users and 1 guest
