BookmarkSubscribeRSS Feed
lior
Calcite | Level 5

Hello,

I run the following panel regression:

proc panel data=invest.table_regressionfinal ;

id GVKEY DATADATE;

model r_tmw=eps_deflate deltaeps_deflate/fixone ;

run;

Now I would like  to run the same regression in  "fama Macbeth" method.

Anyone happen to know how to formulate the "fama Macbeth" procedure and what are the implications of switching from panel regression to  "fama Macbeth" regression ?

Thanks,

Lior

2 REPLIES 2
ets_kps
SAS Employee

there probably are more elegant ways to do this but here is a quick find on the web.  Have fun. http://kelley.iu.edu/nstoffma/fe.html

lior
Calcite | Level 5

Hi,

Thanks for the link.

Actually I've already looked at this link before  but as I don't understand the code its hard for me to use it...

could you please  transform the following regression:

proc panel data=invest.table_regressionfinal ;

id GVKEY DATADATE;

model r_tmw=eps_deflate deltaeps_deflate/fixone ;


run;


into the "fama Macbeth" code (which include Newey-West adjustment for standard errors)

which is presented at the link as:

proc sort data=pe; by variable; run;

%let lags=3;

ods output parameterestimates=nw;

ods listing close;

proc model data=pe;

by variable;

instruments / intonly;

estimate=a;

fit estimate / gmm kernel=(bart,%eval(&lags+1),0) vardef=n; run;

quit;

ods listing;

proc print data=nw; id variable;

var estimate--df; format estimate stderr 7.4;

run;

More over, I havn't found in the web the implication of this method, meaning what is the different in using

"fama Macbeth" method comper to a regular regression?



Thanks,

Lior




sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 3877 views
  • 0 likes
  • 2 in conversation