Page 1 of 1
Fixed effect dummies in panel VAR....HELP!!!
Posted: Fri May 24, 2013 6:41 am
by varprob
Hi,
I am doing a panel VAR analysis with 6 endogeneous variables. I have quaterly data for 11 countries from 1991Q1 - 2011Q4. I also include dummy variable which takes value 1 for dates later than 1999, in order to control for change in currency Euro. Now I want add country fixed effects. To do that I include '@expand(@crossid)' in the box for exogeneous variable in VAR. I also include the euro dummy variable here. But when I am trying to estimate, its showing 'near singular matrix', even if I exclude the constant. If I exclude the euro dummy and only include '@expand(@crossid)', then I am getting result. What is the problem here? Why I cannot include both the dummies? Is it a 'dummy variable trap' problem? If yes, how can I solve it??? ...PLEASE HELP!!!
Thank you.
Re: Fixed effect dummies in panel VAR....HELP!!!
Posted: Fri May 24, 2013 7:12 am
by startz
It probably is the dummy variable trap. You can't include two full sets of dummies. You have to drop one dummy from one category.
Re: Fixed effect dummies in panel VAR....HELP!!!
Posted: Fri May 24, 2013 7:21 am
by varprob
Thank you for your reply. Can you please tell me how to drop one dummy from one category? There is a command called '@dropfirst', but how should I use it? If I write @expand(@crossid,@dropfirst), its still showing the same message 'near singular matrix' !!
Re: Fixed effect dummies in panel VAR....HELP!!!
Posted: Fri May 24, 2013 7:31 am
by startz
That looks right, so you might want to post your entire command.
Re: Fixed effect dummies in panel VAR....HELP!!!
Posted: Mon May 27, 2013 8:12 am
by varprob
Let me tell you what I am doing. I am running a panel VAR with 6 endogeneous variables. I have data for 11 countries from 1991Q1 to 2011Q4. I also have a dummy variable for tranmission of currency to euro, which takes value 1 after 1999Q1 and zero otherwise. I have pooled the data for all countries to get the 6 endogeneous variable and the dummy variable. Now I also want to add country fixed effects. When I am running the VAR, I go to Quick> Estimate VAR. Then in the box I put the endogeneous variables under the box 'endogeneous variables' and in the box for exogeneous variable I write 'dummy @expand(@crossid,@dropfirst)'. Here dummy is the dummy variable for shift in euro and @expand(@crossid,@dropfirst) is to control for country fixed effects. Then when I am clicking OK, its saying 'near singular matrix'!! I get the same message even if I add a constant. What should I do?
Re: Fixed effect dummies in panel VAR....HELP!!!
Posted: Mon May 27, 2013 9:00 am
by startz
Let me tell you what I am doing. I am running a panel VAR with 6 endogeneous variables. I have data for 11 countries from 1991Q1 to 2011Q4. I also have a dummy variable for tranmission of currency to euro, which takes value 1 after 1999Q1 and zero otherwise. I have pooled the data for all countries to get the 6 endogeneous variable and the dummy variable. Now I also want to add country fixed effects. When I am running the VAR, I go to Quick> Estimate VAR. Then in the box I put the endogeneous variables under the box 'endogeneous variables' and in the box for exogeneous variable I write 'dummy @expand(@crossid,@dropfirst)'. Here dummy is the dummy variable for shift in euro and @expand(@crossid,@dropfirst) is to control for country fixed effects. Then when I am clicking OK, its saying 'near singular matrix'!! I get the same message even if I add a constant. What should I do?
Everything you are doing sounds right. If you post your workfile, including the VAR object, perhaps someone will spot a problem.