Hi everyone
Short form of question
Can you use standard corrections for generated regressors when the regressor does not enter the 2nd equation directly, but only as an interaction term?
Context
Model 1 predicts the unanticipated part of a shock (time series). That is,
reg y1 <indepvars1>
predict res1, r
Note that res only varies over time.
Model 2 is a panel model with time and group fixed effects that tries to estimate the effect of X, and of X interacted with the unanticipated part of the shock (res1).
reghdfe y2 x2 x2#res1, absorb(time group) cluster(time)
Long form of question
Model two has two pecularities: a) it uses clustered standard errors and b) the generated regressor only enters in an interaction term c) the generated regressor is the residual, not the predicted value.
a) I believe is okay as long as you use the procedure described in Hardin 2002 (The robust variance estimated for two-stage models).
b) I'm not sure what sort of adjustment needs to be done to accommodate this. Hardin's formula uses the coefficient of the generated regressor in the second stage, should this then be the coefficient of the interaction term times x2 (the other variable in the interaction term)?
c) The examples almost always use y_hat as generated regressor, whereas I would like to use y-y_hat. I think that doesn't matter, but I haven't seen that explicitly written out anywhere?
Many thanks for any help you can provide
(reghdfe is a user-written command, available on ssc and github)
Related Posts with Generated regressor in interaction term
Working with dates and loopIs it possible to get a loop that works with every string variable which are in date format (CCYY-NN…
explaining regression coefficients economic significanceHello I performed xtreg y x x , fe regression to test the relationship between profit and cash hold…
Impulse response function after SVAR with exogenous variableHi, I'm trying to run the SVAR model with exogenous variables. A Y(t) = α+βy Y(t-1) + (d(t) +s(t))…
Merging datasetsHi Users, I just got access to a dataset (M) which I need to merge with another data based on id an…
Bar Graph: Show Category on x-axis with Zero ObservationsHi there, hoping to get some assistance with showing 4 categories along an x-axis of a bar chart (co…
Subscribe to:
Post Comments (Atom)
0 Response to Generated regressor in interaction term
Post a Comment