Hi,
I'm using panel data with a sample of 49 countries and a sample period between 2001 and 2006. I use listed domestic firms/population as dependent variable and dummy variables for the civil law legal origin and whether the one share one vote principle is present in a country, I also use gdp growth, log gnp, log gnp per capita, the rule of law index and also the anti director rights index as independent variables. The latter variable does not change over time and has the same value for every year between 2001-2006 for a given country.
When I run my regression it has serial correlation (Durbin-Watson Stat: 0,1). When I try to remove the serial correlation by using the first difference of all variables, I get the near singular matrix error. I wonder if there are other methods to remove the serial correlation or if the serial correlation has something to do with my data and the manner that I put my variables in the excel workfile. For example did I put the dummy variables in the excel file in the right way or do I need to create the dummies in Eviews? The same for the non time-varying antidirector rights variable. Furthermore, is it correct to take the first difference of my two dummy variables and non time-varying variable in a similar manner as the other variables d(civil_law) d(one_share_one_vote) d(antidirector_rights) or is there an other way? I've attachted my workfile to this message.
Kind regards,
Alexander
Dummy variables in panel data and serial correlation
Moderators: EViews Gareth, EViews Moderator
-
- Posts: 4
- Joined: Thu Nov 24, 2016 9:41 am
Dummy variables in panel data and serial correlation
- Attachments
-
- Regressie werkblad listed firms pop.xlsx
- (37.65 KiB) Downloaded 304 times
Re: Dummy variables in panel data and serial correlation
Dear Alexander123,
I will answer by points:
1) I did not understand Antidirector rights with numbers (4,2,5,6...). Is this variable a dummy?
2) You do not have to difference dummies.
And it is normal to observe serial correlation at panel data.
Regards.
I will answer by points:
1) I did not understand Antidirector rights with numbers (4,2,5,6...). Is this variable a dummy?
2) You do not have to difference dummies.
And it is normal to observe serial correlation at panel data.
Regards.
-
- Posts: 4
- Joined: Thu Nov 24, 2016 9:41 am
Re: Dummy variables in panel data and serial correlation
Dear Jmagomez,
Thanks for your response. The antidirector rights variable is a variable that does not change over time. A country has either 1,2,3,4,5 or 6 antidirector rights. The number of antidirector rights that a country has, does not change between 2001-2006 (sample period). So that is why every country has six of the same values for every year of the sample period. I was wondering if I put this variable in the workfile in the right way or if I should do it in another manner.
Furthermore, when I take the first difference of every variable (except for the dummy's and antidirector rights) nearly all my coefficients become insignificant and their values change a lot. Do I always have to remove the serial correlation out of the regression or is that not necessary, as you mentioned that it is normal to observe serial correlation in panel data.
Kind regards,
Alexander
Thanks for your response. The antidirector rights variable is a variable that does not change over time. A country has either 1,2,3,4,5 or 6 antidirector rights. The number of antidirector rights that a country has, does not change between 2001-2006 (sample period). So that is why every country has six of the same values for every year of the sample period. I was wondering if I put this variable in the workfile in the right way or if I should do it in another manner.
Furthermore, when I take the first difference of every variable (except for the dummy's and antidirector rights) nearly all my coefficients become insignificant and their values change a lot. Do I always have to remove the serial correlation out of the regression or is that not necessary, as you mentioned that it is normal to observe serial correlation in panel data.
Kind regards,
Alexander
Re: Dummy variables in panel data and serial correlation
Dear Alexander 123,
You must put without taking first difference. So you can analyze the relations between variables with all information available.
Regards.
You must put without taking first difference. So you can analyze the relations between variables with all information available.
Regards.
Return to “Econometric Discussions”
Who is online
Users browsing this forum: No registered users and 26 guests