OLS panel estimation with clustered standard errors
Moderators: EViews Gareth, EViews Moderator
OLS panel estimation with clustered standard errors
Hi everyone, please find my Eviews workfile attached ("6.wf1"). Basically eq01 is the OLS panel regression output (without clustered standard errors), how can I use clustered standard errors? I have created a variable "key" which is the clustering identifier, but I am unsure of what to click to use clustered standard errors. Thanks.
- Attachments
-
- 6.wf1
- (1.26 MiB) Downloaded 290 times
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: OLS panel estimation with clustered standard errors
Your data are not structured as a panel. What is the panel identifier?
Re: OLS panel estimation with clustered standard errors
Ah yes, I managed to import the excel datafile into Eviews 7 as panel after searching through some old forum posts.
I have uploaded my excel datafile here: https://www.dropbox.com/s/gy12j5y913tox ... 0file.xlsx (too big to upload as an attachment)
The yellow highlighted columns are my dependent variables, the blue columns are my independent variables and the green column is the identifier for each bank. Eg, "1" corresponds to the some bank, "2" corresponds to a different bank, and finally "23" corresponds to the last bank. I have a dated balanced panel from 1/1/2008-28/2/2013 (1348 observations) across 23 banks.
I have uploaded my eviews workfile here: https://www.dropbox.com/s/3ftgw94mon76k ... rkfile.wf1
eq01 is the OLS regression I want to run, but I want to do a few extra things which I am unsure of:
1. I want to use clustered standard errors (clustered by bank), how do I do this?
2. I also want to use bank fixed effects. To do this, do I just select "fixed" under effects specification -> cross-section?
Many thanks for your help.
I have uploaded my excel datafile here: https://www.dropbox.com/s/gy12j5y913tox ... 0file.xlsx (too big to upload as an attachment)
The yellow highlighted columns are my dependent variables, the blue columns are my independent variables and the green column is the identifier for each bank. Eg, "1" corresponds to the some bank, "2" corresponds to a different bank, and finally "23" corresponds to the last bank. I have a dated balanced panel from 1/1/2008-28/2/2013 (1348 observations) across 23 banks.
I have uploaded my eviews workfile here: https://www.dropbox.com/s/3ftgw94mon76k ... rkfile.wf1
eq01 is the OLS regression I want to run, but I want to do a few extra things which I am unsure of:
1. I want to use clustered standard errors (clustered by bank), how do I do this?
2. I also want to use bank fixed effects. To do this, do I just select "fixed" under effects specification -> cross-section?
Many thanks for your help.
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: OLS panel estimation with clustered standard errors
I can't open your workfile, but if you are structured with bank as the cross-section identifier, then cross-section effects will give you fixed effects, and "White period" coefficient covariances will give the bank clustered covariances.
Re: OLS panel estimation with clustered standard errors
Thanks Glenn. Also I just want to clarify, I see there are two types of White coeficient covariances, "White - Period" and "White - Cross Section", so for clustering by bank I use White-Period, but what is "White - Cross Section"? Thanks in advance.
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: OLS panel estimation with clustered standard errors
Contemporaneous correlation across cross-sections (clustering by period, if you will).
Re: OLS panel estimation with clustered standard errors
Ah I see, also just one last thing, what is the difference between fixed effects for "cross-section" and "period" under Panel options -> effects specification? So cross-section fixed effects (assuming I have bank as the cross-section identifier) gives me bank fixed effects, what if I had "period" fixed effects, what does that do?
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: OLS panel estimation with clustered standard errors
If it's a dated panel, time effects.
Who is online
Users browsing this forum: No registered users and 2 guests
