Hi all,
Currently in the works of writing my thesis where one of the regressions is the following:
Array
rhp = Real House Prices
shock = Start of unconventional monetary policy
hsr = housing supply
hhdi = household income
mr = mortgage rate
unem = unemployment
hhd = household debt
Basically I am testing whether UMP had an effect on house prices in EZ when accounting for the housing supply (which seems to be the case). However, for the period Q1 2010 - Q1 2021 (shock = Q1 2015) I want to research in which quarter the variable became significant sort of in a backtesting manner. I used the following code, but it drops all variables due to collinearity (I assume the collinearity between quarters):
gen significance = .
forval i = 1/44 {
local quarter = 200 + `i'
xtreg rhp hsr shock hsrxshock hhdi mr unem hhd if quarter == `quarter', fe
// Check the significance of the interaction term
local t_statistic_of_interaction = _b[hsrxshock]
if abs(`t_statistic_of_interaction') > 1.96 {
replace significance = `i' if missing(significance)
}
}
Anyone has any ideas on how to determine how I can test in which quarter the interaction variable became significant?
Many thanks!
Matthias
Related Posts with Advice on backtesting when an interaction is significant
Bar chart with intervalsI'm plotting the following bar chart where "date" contains around 100 observations thus I would like…
Formatting dates in a bar chart.Hi! When I plot Code: graph bar (count) variable, over(date) being date the product of Code: gen …
Rolling problems: get decomposed R2, also called Shapley valueDear all I have time-series data. I want to run rolling regressions and obtain the decomposed R2 (a…
How to make a unique combinationHi everyone, I have a question about cleaning my dataset, so I get for each cz (czone) the totals i…
Team PowerGoodmorning everyone. I'm doing a thesis about social pressure in stadiums. For each team I have t…
Subscribe to:
Post Comments (Atom)
0 Response to Advice on backtesting when an interaction is significant
Post a Comment