OLS panel estimation with clustered standard errors

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

truetears
Posts: 14
Joined: Sat Aug 04, 2012 7:57 am

OLS panel estimation with clustered standard errors

Postby truetears » Thu Sep 12, 2013 10:38 am

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

Postby EViews Glenn » Thu Sep 12, 2013 4:42 pm

Your data are not structured as a panel. What is the panel identifier?

truetears
Posts: 14
Joined: Sat Aug 04, 2012 7:57 am

Re: OLS panel estimation with clustered standard errors

Postby truetears » Fri Sep 13, 2013 12:27 am

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.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: OLS panel estimation with clustered standard errors

Postby EViews Glenn » Fri Sep 13, 2013 9:54 am

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.

truetears
Posts: 14
Joined: Sat Aug 04, 2012 7:57 am

Re: OLS panel estimation with clustered standard errors

Postby truetears » Fri Sep 13, 2013 11:19 am

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

Postby EViews Glenn » Fri Sep 13, 2013 4:58 pm

Contemporaneous correlation across cross-sections (clustering by period, if you will).

truetears
Posts: 14
Joined: Sat Aug 04, 2012 7:57 am

Re: OLS panel estimation with clustered standard errors

Postby truetears » Sat Sep 14, 2013 8:42 am

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

Postby EViews Glenn » Mon Sep 16, 2013 9:30 am

If it's a dated panel, time effects.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests