Hi,
I am new to Stata and am having some issues with my analysis of safe haven asset performance during the 2008 GFC and COVID-19.
I am regressing safe haven asset returns (x) on stock market returns (y). I am using the following model:
I need to have five coefficients within the same regression so that there is one constant term for all.
Say I am looking at gold returns in the US, I need the following coefficients:
hedge (b1) - safe haven assets baseline hedge, i.e., normal times excluding crisis periods (GFC and COVID)
GFC (b2) - [COLOR=black !important]incremental safe haven asset beta i.e. [/COLOR]GFC crisis period which is 20 trading days (12/09/2008 - 09/10/2008)
total GFC beta (sum of b1 + b2) - total effect for the given crisis (normal times + GFC crisis period)
COVID (b3) - incremental asset beta i.e., COVID 20 day crisis period (20/02/2020 - 18/03/2020)
total COVID effect (sum of b1 + b3) - total effect for COVID crisis (normal times + COVID crisis period)
I end up with multiple gaps in the time series data which causes issues.
I know I need to create dummy variables and this works for GFC and COVID crisis periods. Next, I create dummies for the total GFC and total COVID then try to regress,
"regress GOLD USA hedge gfc total_gfc covid total_covid"
The total effects are ommitted due to collinearity.
I don't know if I should try something to do with sub samples, time periods etc. I have very little knowledge in this area.
(I also tried filling the gaps in the data with "." to show that they are intentional however then Stata does not read the variables at all.)
I am at a loss on how to fix this issue and if anyone has any advice, I would be so grateful if you could let me know.
Thank you very much in advance!
The results I am trying to mimic:
I am new to Stata and am having some issues with my analysis of safe haven asset performance during the 2008 GFC and COVID-19.
I am regressing safe haven asset returns (x) on stock market returns (y). I am using the following model:
I need to have five coefficients within the same regression so that there is one constant term for all.
Say I am looking at gold returns in the US, I need the following coefficients:
hedge (b1) - safe haven assets baseline hedge, i.e., normal times excluding crisis periods (GFC and COVID)
GFC (b2) - [COLOR=black !important]incremental safe haven asset beta i.e. [/COLOR]GFC crisis period which is 20 trading days (12/09/2008 - 09/10/2008)
total GFC beta (sum of b1 + b2) - total effect for the given crisis (normal times + GFC crisis period)
COVID (b3) - incremental asset beta i.e., COVID 20 day crisis period (20/02/2020 - 18/03/2020)
total COVID effect (sum of b1 + b3) - total effect for COVID crisis (normal times + COVID crisis period)
I end up with multiple gaps in the time series data which causes issues.
I know I need to create dummy variables and this works for GFC and COVID crisis periods. Next, I create dummies for the total GFC and total COVID then try to regress,
"regress GOLD USA hedge gfc total_gfc covid total_covid"
The total effects are ommitted due to collinearity.
I don't know if I should try something to do with sub samples, time periods etc. I have very little knowledge in this area.
(I also tried filling the gaps in the data with "." to show that they are intentional however then Stata does not read the variables at all.)
I am at a loss on how to fix this issue and if anyone has any advice, I would be so grateful if you could let me know.
Thank you very much in advance!
The results I am trying to mimic:
Comment