Hi All,
I'm working on trying to get the results from the following regression which is a formula used in previous research;
Rt = β0 +β11(rt > 0)rt +β21(rt < 0)rt +t
where 1(·) is an indicator function to differentiate between positive and negative changes in rt
However I'm struggling because trying to use STATA's indicator function only supports dummy variables and that is not what I am trying to achieve as the rt does not only have a value of 1 or 0.
I have also split up the variable rt into 2 variables depending on if rt <0 or >0 but when I try to regress Rt on these 2 variables there are no overlapping observations so the regress function does not work.
Would you have any advice on how to run the regression above?
Many thanks,
Joris
Related Posts with Regression with Indicator Function splitting Independent Variable into 2 Subgroups
Dummy variablesHi, Im running some regressions to investigate the effects corruption has on enrolment rates. I am …
r(2000) for VAR modelHello, I am new to Stata and am experiencing problems. There are several threads concerning this pr…
Difference between mi append and appendReading through the mi append file right now and I fail to understand the difference between the two…
log log transformationI'm studying the firm size distribution i need to represent it in a double logarithmic form, my prob…
Multiple Imputation: generating variablesHi Members, This question is in relation to generating variables following Multiple Imputation. I …
Subscribe to:
Post Comments (Atom)
0 Response to Regression with Indicator Function splitting Independent Variable into 2 Subgroups
Post a Comment