Clustered errors
Moderators: EViews Gareth, EViews Moderator
Re: Clustered errors
Hi,
I have a crosssectional dataset of 130 observations. These observations are selected over 20 different countries, for different periods in time. I do not have an equal number of observations for each country, nor do I have equal time periods for each observations.
Eg: 3 observations for country 1, [19801983], [ 2000, 2004] and [20062009] , 2 observations for country 2: [2005], [20072009], and so on.
I have included "fixed effect" dummies for each country, but I was wondering if I should also consider " countryclustered standard errors". I want to allow my errors to be correlated with the other observations of the same country, but not with observations from a different country. Whiteperiod standard errors look appropriate but unfortunately you can only apply them in a panel dataset. How can I adjust these standard errors for my case?
Kind greetings,
I have a crosssectional dataset of 130 observations. These observations are selected over 20 different countries, for different periods in time. I do not have an equal number of observations for each country, nor do I have equal time periods for each observations.
Eg: 3 observations for country 1, [19801983], [ 2000, 2004] and [20062009] , 2 observations for country 2: [2005], [20072009], and so on.
I have included "fixed effect" dummies for each country, but I was wondering if I should also consider " countryclustered standard errors". I want to allow my errors to be correlated with the other observations of the same country, but not with observations from a different country. Whiteperiod standard errors look appropriate but unfortunately you can only apply them in a panel dataset. How can I adjust these standard errors for my case?
Kind greetings,
Re: Clustered errors
Hi,
My sample have the 100 largest publicly traded banks in Europe from 1996 to 2011 (a total of 1133 observations). Banks are from 25 diferent countries.
I'm using eviews to estimate a regression in which Leverage is the dependent variable and then I have 5 explanatory variables (please see attached the equation).
Following the available literature I have to use time and country fixed effects (Ct and Cc). Regardind time fixed effects I found it easy (panel options / Effects specification / Period:Fixed)
Q1: Could you give me some guidelines to deal with country fixed effects in eviews? (One of my available variables is country)
Two aditional questions:
Q2: what should I do to adjust the standard errors for clustering at the bank level?
Q3: variable Div is a dummy (1 if bank pays dividends in a given period, 0 otherwise). Once is a dummy it has the same processing and interpretation of remaining variables?
Many thanks!
My sample have the 100 largest publicly traded banks in Europe from 1996 to 2011 (a total of 1133 observations). Banks are from 25 diferent countries.
I'm using eviews to estimate a regression in which Leverage is the dependent variable and then I have 5 explanatory variables (please see attached the equation).
Following the available literature I have to use time and country fixed effects (Ct and Cc). Regardind time fixed effects I found it easy (panel options / Effects specification / Period:Fixed)
Q1: Could you give me some guidelines to deal with country fixed effects in eviews? (One of my available variables is country)
Two aditional questions:
Q2: what should I do to adjust the standard errors for clustering at the bank level?
Q3: variable Div is a dummy (1 if bank pays dividends in a given period, 0 otherwise). Once is a dummy it has the same processing and interpretation of remaining variables?
Many thanks!
 Attachments

 Sem Título.png (75.98 KiB) Viewed 5994 times

 EViews Developer
 Posts: 2646
 Joined: Wed Oct 15, 2008 9:17 am
Re: Clustered errors
To compute clustering in the crosssection workfile, simple structure as a nondated panel using the variable you want to cluster over as the crosssection identifier.

 EViews Developer
 Posts: 2646
 Joined: Wed Oct 15, 2008 9:17 am
Re: Clustered errors
I must admit I'm finding it difficult to follow the multiple conversations in this single thread. In general, one should create a new topic/thread, rather than hijacking an existing one, unless the comments pertain to the early discussion.
On banking. How do you have the workfile structured?
On banking. How do you have the workfile structured?
Re: Clustered errors
EViews Glenn wrote:I must admit I'm finding it difficult to follow the multiple conversations in this single thread. In general, one should create a new topic/thread, rather than hijacking an existing one, unless the comments pertain to the early discussion.
On banking. How do you have the workfile structured?
Thanks for the advice. I'll move it to a new topic
Re: Clustered errors
Could I interpret all you said in the following way, assuming panel data structured with N crosssections (firms, countries, etc) over T periods (years, etc):
White Crosssection:
N equations giving a NxN error matrix. White Crosssection robust errors assumes and corrects for diagonal heteroskedastic variances and nonzero offdiagonal covariances.
It’s like when some countries are somewhat constant over time while others may vary much over time. Also, some countries may move together up or down while others may be moving independently from the rest.
White Period:
T equations giving a TxT error matrix. White Period robust errors assumes and corrects for diagonal heteroskedastic variances and nonzero offdiagonal covariances.
It’s like there are calm years when each country behaves like all other countries and wild years when you have countries moving haphazardly apart from each other. Also, there may be some persistence over time: wild years tend to follow wild years and calm years tend to follow calm years.
White Diagonal:
NTxNT error matrix. White Diagonal assumes and corrects for individual observations heteroskedasticity but makes no assumptions whatsoever concerning covariances of any type.
Any of these options can be used before or after controlling for Fixed or Random Effects, crosswise or periodwise (or crosswise and periodwise).
Is this ok?
White Crosssection:
N equations giving a NxN error matrix. White Crosssection robust errors assumes and corrects for diagonal heteroskedastic variances and nonzero offdiagonal covariances.
It’s like when some countries are somewhat constant over time while others may vary much over time. Also, some countries may move together up or down while others may be moving independently from the rest.
White Period:
T equations giving a TxT error matrix. White Period robust errors assumes and corrects for diagonal heteroskedastic variances and nonzero offdiagonal covariances.
It’s like there are calm years when each country behaves like all other countries and wild years when you have countries moving haphazardly apart from each other. Also, there may be some persistence over time: wild years tend to follow wild years and calm years tend to follow calm years.
White Diagonal:
NTxNT error matrix. White Diagonal assumes and corrects for individual observations heteroskedasticity but makes no assumptions whatsoever concerning covariances of any type.
Any of these options can be used before or after controlling for Fixed or Random Effects, crosswise or periodwise (or crosswise and periodwise).
Is this ok?
Re: Clustered errors
Could the Eviews team please provide some feedback on whether my interpretation as stated in my post of Wed July 10 is ok in terms of Eviews implementation?
Thanks,
Thanks,

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 12647
 Joined: Tue Sep 16, 2008 5:38 pm
Re: Clustered errors
The EViews team does not offer econometric advice (no matter how many times, or how differently you ask).
Follow us on Twitter @IHSEViews
Re: Clustered errors
I conclude that my interpretation as in my post of Wed July 10 corresponds exactly to what Eviews does.
Thanks.
Thanks.
Re: Clustered errors
I have the same issue. I am trying to use clustered standard errors for an unstructured file. Could anyone help with some guiding instructions for how to do this in Eviews 7? i am pretty nw with Eviews but I need to use it urgently for my thesis.
Thanks a lot in advance!
Thanks a lot in advance!
Re: Clustered errors
I get the difference now between white crosssection and whiteperiod, but could you explain what is the difference between whiteperiod and period SUR?
many thanks.
many thanks.

 EViews Developer
 Posts: 2646
 Joined: Wed Oct 15, 2008 9:17 am
Re: Clustered errors
The former are adjustments to the computation of the standard errors that make them robust to crosssection intercluster covariances where we do not assume common structure on the covariances. The latter robust method assumes that the intercluster covariances are common across crosssections, estimates those covariances, and then adjusts the standard error calculations accordingly. I believe that this is discussed in the manual.
Return to “Econometric Discussions”
Who is online
Users browsing this forum: No registered users and 14 guests