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
Time Dummy Variable for xtabond2Hi A little background first. I am trying to test how democracy levels impact GDP. I am using the d…
mixed effects model with random slopes for categorical variablesDear all I am trying to estimated the effect of positive and negative changes in income on GHQ (wel…
categorical variableDear Members Hello i am working on Pakistan consumption data and using categorical variables. howev…
Is there a way to export a codebook to excel with notes included?I am using the codebookout module to export a data set's codebook to excel. That said, it doesn't ex…
sequential counting helpHi, I have a dataset with two different procedures (proc1 & proc 2). Some id's have multiple pr…
Subscribe to:
Post Comments (Atom)
0 Response to Regression with Indicator Function splitting Independent Variable into 2 Subgroups
Post a Comment