Cook's Distance in EViews

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

Inns
Posts: 3
Joined: Fri Sep 20, 2013 9:12 am

Cook's Distance in EViews

Postby Inns » Fri Sep 20, 2013 9:16 am

Hey there!
I was wondering whether it is possible to calculate Cook's Distance in EViews 7 and if so, how it could be done?
I'm writing my thesis these days so it's quite urgent.

I would really appreciate your help!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Cook's Distance in EViews

Postby EViews Gareth » Fri Sep 20, 2013 9:45 am

There isn't a built in tool for calculating it, but since Cook's distance is a simple function of studentized residuals and the hat matrix, both of which can be outputted from View->Stability Diagnostics->Influence Statistics, it should be straight forward enough to compute manually.

Inns
Posts: 3
Joined: Fri Sep 20, 2013 9:12 am

Re: Cook's Distance in EViews

Postby Inns » Fri Sep 20, 2013 9:57 am

Hey Gareth!
Thanks a lot for your reply.
One of your support guys told me that there is a possibility to calculate Cook's D in EViews, but unfortunately didn't go any further...
My problem is, that there are various approaches to compute it manually, but I'm an absolute beginner. So, is it just the product of the RStudent and the Hat-Matrix? I've read somewhere, that leverage is the one to go with, i.e. RStudent x Leverage. But I'm not sure how to interpret the leverage plot or more precisely the values in brackets when clicking on them?

Do you know anything about it?? :oops:

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Cook's Distance in EViews

Postby EViews Gareth » Fri Sep 20, 2013 10:09 am

I'm sure your text book, or whatever reference you are using, has a description of Cook's distance.

Inns
Posts: 3
Joined: Fri Sep 20, 2013 9:12 am

Re: Cook's Distance in EViews

Postby Inns » Fri Sep 20, 2013 10:52 am

As I said, there are many calculation approaches and I have no idea which one to use.

ulrichrue
Posts: 1
Joined: Fri Sep 27, 2013 2:20 am

Re: Cook's Distance in EViews

Postby ulrichrue » Fri Sep 27, 2013 3:34 am

to give you some guidance to your questions above:

Cook's Distances are defined as:
D(i)=(1/k)*(s(i)^2/s^2)*DFITS(i)^2

k...number of variables in the regression (including the constant)
s...root mean square error (=@se; S.E. of regression
in the regression output)
s(i)... root mean squared error where the ith oberservation is ommited
DFITS(i)...scaled difference in fitted values for that observation between the original
equation and an equation estimated without that observation (a series needs to be created via View/Stability Diagnostics/Influence Statistics see EVIEWS 7 User Quide II, p. 184)

s(i), the root mean squared error where the ith oberservation is ommited, is not built-in in EVIEWS as far as I know but it is included in the studentized residuals (RStudent, see equation 23.44 on p. 184 EVIEWS User Guide II), which can be created (View/Stability Diagnostics/Influence Statistics) as a series.
RStudent is defined as
RStudent(i)=e(i)/(s(i)*sqrt(1-h(i))
e(i)...these are the residuals (resid, a series which is already created)
h(i)...i-th diagonal element of the Hat Matrix (needs to be created via View/Stability Diagnostics/Influence Statistics)

rearrange equation above
s(i)=e(i)/(sqrt(1-h(i))*RSTUDENT)
to create s(i), the root mean square error, where the ith observation is ommited.

you should have created the following series now:
dffits and
s(i)
to calculate the Cook's Distances with known values for "k" and "s"

Best Regards,

Ulrich


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests