Fama-MacBeth regression

For questions about EViews Add-ins available from the EViews Add-ins webpage. Note each add-in available on our webpage will have its own individual thread.

Moderators: EViews Gareth, EViews Moderator, EViews Esther

EViews Rebecca
EViews Developer
Posts: 113
Joined: Thu Apr 18, 2013 8:37 am

Fama-MacBeth regression

Postby EViews Rebecca » Thu Apr 18, 2013 9:03 am

This thread is about the Fama-MacBeth two-step regression add-in that performs Fama-MacBeth estimation of factor premia on a set of portfolio/asset returns and factors in EViews.

Belgium11
Posts: 1
Joined: Fri Jun 14, 2013 12:51 am

Re: Fama-MacBeth regression

Postby Belgium11 » Fri Jun 14, 2013 12:54 am

Hello,
Could somebody explain me how this add-in works and the approach behind it ?

Thank you in advance

trubador
Did you use forum search?
Posts: 1518
Joined: Thu Nov 20, 2008 12:04 pm

Re: Fama-MacBeth regression

Postby trubador » Fri Jun 14, 2013 1:08 am

First of all, make sure that you have EViews version 7.x or higher. Then, download the add-in and run the installation program (or simply unzip it). It will upload a documentation file into the related folder (C:\Users\...\Documents\EViews Addins\...), where you can find your answers.

WhutWhut

Re: Fama-MacBeth regression

Postby WhutWhut » Sun Oct 27, 2013 10:56 am

After filling in the pop up screen with my specifications and running the add in the attached error pops up. Afterwhich I do not get to see the results spool.

Can anybody help me out with this?

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

Re: Fama-MacBeth regression

Postby EViews Gareth » Sun Oct 27, 2013 11:33 am

You'll probably need to provide your workfile, and the specification you used.
Follow us on Twitter @IHSEViews

WhutWhut

Re: Fama-MacBeth regression

Postby WhutWhut » Sun Oct 27, 2013 12:04 pm

See attachment for the workfile.

The dependent variables are the 25 portfolios named valsize_*_val_exrf with the factors being Mkt_value smb_value hml_value for the period between october 1989 and august 2013.

Thanks in advance!

EViews Rebecca
EViews Developer
Posts: 113
Joined: Thu Apr 18, 2013 8:37 am

Re: Fama-MacBeth regression

Postby EViews Rebecca » Mon Oct 28, 2013 10:20 am

There was a bug in the Fama-MacBeth code that didn't handle samples properly. There's a version 1.1 available now through automatic download and from the website.

When you run it again set your sample to 1989:10 2013:08 (i.e. no NAs).

WhutWhut

Re: Fama-MacBeth regression

Postby WhutWhut » Mon Oct 28, 2013 11:09 am

Thank you very much it works now!

One quick question regarding the methodology used in the add-in is this a static Fama-Macbeth in which the time series regression is over the entire period and the coefficients are then used for the cross sectional regression. Or are these rolling time series regression in which for the first x years coefficients are estimated and then used for the following year in cross sectional regressions and this process is then repeated troughout time to eventually have a time series of coefficients which are then averaged and used?

once again thanks for the help!

EViews Rebecca
EViews Developer
Posts: 113
Joined: Thu Apr 18, 2013 8:37 am

Re: Fama-MacBeth regression

Postby EViews Rebecca » Mon Oct 28, 2013 11:19 am

The time series regressions are done first over the whole time period. The coefficients are then used for the cross-sectional regressions.

WhutWhut

Re: Fama-MacBeth regression

Postby WhutWhut » Tue Nov 05, 2013 6:34 am

After running the Fama-Macbeth Add in one can see the resulting lamda's from the cross sectional regressions in a matrix called Gamma01. I was wondering how I can replicate one of these series best to see if the numbers I am seeing are correct and to ensure that I understand what is behind the add in. Could anybody help me out with this? Thanks in Advance!

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

Re: Fama-MacBeth regression

Postby EViews Gareth » Tue Nov 05, 2013 7:44 am

All Add-ins are open source. Just open up the program in your EViews Add-ins folder and take a look at the calculations.
Follow us on Twitter @IHSEViews

WhutWhut

Re: Fama-MacBeth regression

Postby WhutWhut » Tue Nov 05, 2013 8:14 am

Thanks for the reply! Looked at the code, but to be honest I am not very familiar with the codes and have a bit of a hard time deciphering the code. So from what I am guessing is that the first time series regression is just OLS regression per asset/return. But could you tell me how the cross sectional regression is done? If I perform a simple cross sectional regression at each moment in time I come to different values then the ones in the gamma output in my workfile!

Would be great if you could help me out.

EViews Rebecca
EViews Developer
Posts: 113
Joined: Thu Apr 18, 2013 8:37 am

Re: Fama-MacBeth regression

Postby EViews Rebecca » Tue Nov 05, 2013 9:06 am

Your cross-sectional regressions should look like equation (2) in the documentation.

WhutWhut

Re: Fama-MacBeth regression

Postby WhutWhut » Tue Nov 05, 2013 10:20 am

Thanks for the suggestion, I've had a look at the documents and tried to replicate the methodology used in the manual and unfortunately the results are still not the same. So to ensure that I am not wasting your time could you confirm if the following is correct: If i run a time series regression on my 25 portfolios and the regressors, then use the resulting beta coefficients in a cross sectional regression at each time period I should get the matrix as provided in the Gamma01 matrix by the fama macbeth add in? If so, this is what I have done and the resulting numbers are not the same. In the attachment I have added the workfile could you also have a look? the dependent variables are named Eqexrf* (e.g. eqexrf11) the independent variables are mkt smb hml.

Would be great if you could have a look at it. I tried to replicate the results for the first and second row in gamma so for time periods 1 and 2.

I hope that you find similar results for the replication and the add in, in that case we now that it is something I am doing wrong.

EViews Rebecca
EViews Developer
Posts: 113
Joined: Thu Apr 18, 2013 8:37 am

Re: Fama-MacBeth regression

Postby EViews Rebecca » Tue Nov 05, 2013 10:40 am

It would be more helpful if you posted the code you're using for your replication.


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 11 guests