Hi
I am working on replicating Amir et al.(2007)
I would like to create a variable which is the SD of operating income of subsequent years.
Using the command rangestat, the interval for SD is either one of the below, if there is enough data in year -1,0,1,2,3,4,5 (0 is current year):
a. fyear -1 3
b. fyear 1 5
c. fyear 0 4
My current code is
rangestat (sd) OPIN (count) OPIN, interval(fyear -1 3) by(gvk)
How can I tell stata to search to see if there are enough data for the scenarios a/b/c indicated above, and if there is enough data for a scenario, apply the according interval?
Each observation can have a different interval (a,b, or c).
Thank you very much
SDFOPIN – Standard Deviation of Operating Income per Share over five subsequent years deflated by the beginning of the period stock price. We calculate
standard deviations using operating income. If data are unavailable for the subsequent five years, we calculate
the variable using current and subsequent four years. If this variable is still missing, we use lagged, current and subsequent three years of operating income.
I am working on replicating Amir et al.(2007)
I would like to create a variable which is the SD of operating income of subsequent years.
Using the command rangestat, the interval for SD is either one of the below, if there is enough data in year -1,0,1,2,3,4,5 (0 is current year):
a. fyear -1 3
b. fyear 1 5
c. fyear 0 4
My current code is
rangestat (sd) OPIN (count) OPIN, interval(fyear -1 3) by(gvk)
How can I tell stata to search to see if there are enough data for the scenarios a/b/c indicated above, and if there is enough data for a scenario, apply the according interval?
Each observation can have a different interval (a,b, or c).
Thank you very much
SDFOPIN – Standard Deviation of Operating Income per Share over five subsequent years deflated by the beginning of the period stock price. We calculate
standard deviations using operating income. If data are unavailable for the subsequent five years, we calculate
the variable using current and subsequent four years. If this variable is still missing, we use lagged, current and subsequent three years of operating income.
Comment