Dear all,
I have estimated a pooled estimation (32 firms over 53 weeks) in the following manner:
Code: Select all
firmpool.ls y? @perreg 1 @perreg beta?
Now, I have 106 estimated coefficients (for every exogenous one estimate in each period). Following the Fama-MacBeth procedure, I am interesed in the averages of those estimates, whereas I have one coefficient vector by means of the following command:
Code: Select all
firmpool.updatecoef
coef(106) gamma = c
My question is now, how to split the gamma vector with 106 rows in 2 vectors (gamma0 and gamma1) with 53 rows each (the first 53 being for the intercepts, the second 53 for the risk premia) in order to transform these 2 vectors in time series using the "mtos"-command and then be able to calculate the averages and so forth.
Additionally, I would like to know, whether anybody knows how to get a vectorization of a diagonal matrix (the coefficient covariance matrix...) to apply the same methodology for this vector then.
Any help is highly appreciated,
many thanks in advance
Tobi