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
How can I get gr_edit to refer to specific graphs when multiple graphs are open in the graph window?I'm using a user-created command (-synth2-) that generates multiple graphs as outputs. I want to be …
Abnormal return for everday in a yearGood day everybody, I am new to Stata, and came up with an issue regarding the event study. I use t…
What components should I pay attention to when buying a new laptop for Stata?Hello Statalisters, I don't know if I'm allowed to post this thread as it is not related to Stata p…
De-trending Panel DataHi everyone, I need help with detrending panel data. I have a panel of firm observations across year…
max # of variables in Cochran's Q test?Hello- I am trying to evaluate multiple choice (non-exclusive) binary questions. Ex: on a survey, a …
Subscribe to:
Post Comments (Atom)
0 Response to Store Coefficient after loop regressions
Post a Comment