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
<istmt>: 3499 control(), mata function, not found... an error occurred when simulate executed cfsimuI have written the following do file to conduct some Monte Carlo simulation. However, for some reaso…
Code lookup issueHello So i'm trying to do a lookup in stata but it keeps matching the blanks for some strange reaso…
Suest after a list?Dear all I have a list of coefficient and standard error averages (following my previous post 15766…
Age calculated from months and yearsHi, I know that many questions have been posted about working with dates in Stata. I have not been …
I want to regress the cumulative returns for each month, using*the most recent available data for all other variables.This is what my data looks like for one particular stock with the id 10104 (id variable is PERMNO): …
Subscribe to:
Post Comments (Atom)
0 Response to Regression with Indicator Function splitting Independent Variable into 2 Subgroups
Post a Comment