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?
Question about the command fuzzydidDear all, When I run the codes of fuzzydid help file,but I get an error.I don't know why. Code: …
Panel data Mediation modelDear all, I have a dataset with panel data from 2015-2018 My independent variable is categorical an…
Confusion about mvreg manual (variables significant as a group)Dear forum members, I am using a multivariate model (mvreg) to analyse the effect of many control v…
WTP space using effect code and estimated via the command of mixlogitwtpDear Experts, I am doing a DCE study and use the command of mixlogitwtp to estimate WTP space. All …
how to calculate entropy for LCA with StataHi. I'm dealing with latent class analysis right now. I wonder how to calculate entropy for LCA with…
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