Dear Statalist users,
I am wondering if I would estimate a regression like this:
Y = X + X * Y_Q2 + X * Y_Q3 + X * Y_Q4 + X * Y_Q5 + Y_Q2 + Y_Q3 +Y_Q4 + Y_Q5
Y_Q2 is an indicator variable of whether Y is in the 2nd quintile of the sample, and Y_Q3-5 is defined similarly.
In other words, I want to put interaction terms of X and indictors of Y quintile.
The reason I want to put interaction terms of X and Y quintile is that I suspect the relationship between Y and X is non-linear and I want to see how the coefficients changes as Y changes.
The reason I don’t flip Y and X (that is, making Y the independent variable and X the dependent variable) is that it is the convention in the literature that Y is the dependent variable.
Technically I can run the regression. But I am wondering if there is any problem econometrics-wise.
I would appreciate any comments/advices. Thank you so much!
Related Posts with Possible to put interaction terms of X and indictors of Y quintile in a regression?
Jackknife xtqregUsing the Grunfeld data, this works: Code: bootstrap, reps(50) cluster(company) idcluster(comp): xt…
Combine multiple rows into one when end_date = start_dateHi there, I am looking for a code that combine the rows when end_date = start_date for a certain ID…
Wild bootstrap with MLDear users, I need to estimate a maximum likelihood model with wild bootstrap as I have few cluster …
matching single county with unique congressional districtAccording to us house election data a single county for a specific state belongs to multiple congres…
Bug in the dir extended macro Dear All, I wonder if anyone can interpret the below syntax line for me. Thank you, Sergiy Array…
Subscribe to:
Post Comments (Atom)
0 Response to Possible to put interaction terms of X and indictors of Y quintile in a regression?
Post a Comment