Retrieving coeffs from a pool estimation

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

dagfinnrime
Posts: 54
Joined: Sat Oct 11, 2008 9:37 am
Location: Oslo
Contact:

Retrieving coeffs from a pool estimation

Postby dagfinnrime » Mon Nov 12, 2012 1:21 pm

Hi,

I want to save the cross-sect specific coeffs from a pool estimation in series with the cross-sectional identifiers in the same way as the variables in my data are identified with cross-sectional identifiers. The following code does what I want:

Code: Select all

for !i = 1 to p_lrv99.@ncross %ccy = p_lrv99.@idname(!i) series c_lrv99_{%ccy} = c(37+!i) next
My question: Is there an easy way to acheive this right out of the pool-object?

Why do I want this? I'm trying to do a Fama-MacBeth type two-step asset-pricing in Eviews.
Step 1: time-series regression of each cross-section (asset) return on a common "risk factor"
Step 2: cross-section regression of "expected" return (say average) on coeffs from step 1.

Maybe a neater way to do this in Eviews?

Thanks in advance,

Dagfinn

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

Re: Retrieving coeffs from a pool estimation

Postby EViews Gareth » Mon Nov 12, 2012 4:06 pm

That's probably the best way to do it.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests