Dear all,
For our master paper, we need to replicate the Fama and French three factor model. We started with the one factor model to try the different regressions. We are struggling to do certain regressions and afterwards extract the different coefficients.
At the moment, we have 520 variables. We have one dependent variable: MktRF (Fama and French one factor model) and 519 independent variables (companies) with the daily excess returns over 20 years.
We were able to do our loop regression (for our 519 firms: from the variable SOLVAY to ADDECOGROUP), by executing the following command:
foreach x of varlist SOLVAY-ADDECOGROUP{
regress `x' MktRF
}
The problem now is that we need to list all the coefficients of MktRF and _cons and generate these coefficients as 2 different variables called ‘coefficientMktRF’ and ‘coefficient_cons’.
We were able to use the Statsby command, but this command only lists the two coefficients of our last regression (our last firm) and not of our 519 regressions.
Is there anyone who can help us to proceed our master thesis?
Related Posts with Store Coefficient after loop regressions
META ANALYSIS - meta regression -Prevalence studyHi to everybody. I've to do a metaregression analysis of Prevalence study. The aim of the study is: …
reshape for matchingI need an urgent help pleeeeease. I am going to do matching comparison between intervened group ( in…
operationalise 'education' in cross-national surveyHi there, I'd like to include education as a control in my analysis. I am using the ESS, so my data …
When can I use "xtset id" in response to "repeated time values within panel"?Hi there, I currently have data for a large pool of individuals across four years (2015/16/17/18). …
year dummies multicollinearityIn my fixed effects regression of about 30 panels in 30 years when i include year dummies by using -…
Subscribe to:
Post Comments (Atom)
0 Response to Store Coefficient after loop regressions
Post a Comment