Code:
rangestat (sd) ROA, by(gvkey) interval(fyear -2 0)
Note that I have interpreted "the last three years" to mean the current year and the two preceding. If you mean the three preceding years (and exclude the current) change the interval() option to -interval(fyear -3 -1)-.
This question is unrelated to the original topic of the thread, except insofar as both pertain to the same person and the same project. It is easy to think that the Forum threads are dialogs between a questioner and a responder. But they are not. They are also searched by other Forum members who have similar problems and seek answers. When a thread contains off-topic material, those who seek the original topic have their time wasted. And those who seek information about the off-topic material will not find it in their searches. So for the good of the community Statalist serves, it is important to keep threads on topic. In the future, if you have an unrelated question (even if it is about the same project) please start a new thread with it.
Comment