Dear Statalist users:
I am trying to replicate the industry-level returns on equity (ROE) as a moving median of past ROEs from all firms in the same industry (48 industries are classified in this case) using at least 5 years and up to 10 years of data, based on this paper by Gebhardt, Lee and Swaminathan (2001, p.143 - see full ref. below*).
I've thought of using the mvsumm command, but since in any give year there are multiple firms in a given industry, I was unable to declare panel data in the first place due to repeated time values in the panel.
Please could someone give me some advice on this? Many thanks in advance.
Best,
Chieh Lin
* Gebhardt, W.R., C.M.C. Lee, and B. Swaminathan, 2001, Toward an implied cost of capital, Journal of Accounting Research, 39(1): 135-176.
I am trying to replicate the industry-level returns on equity (ROE) as a moving median of past ROEs from all firms in the same industry (48 industries are classified in this case) using at least 5 years and up to 10 years of data, based on this paper by Gebhardt, Lee and Swaminathan (2001, p.143 - see full ref. below*).
I've thought of using the mvsumm command, but since in any give year there are multiple firms in a given industry, I was unable to declare panel data in the first place due to repeated time values in the panel.
Please could someone give me some advice on this? Many thanks in advance.
Best,
Chieh Lin
* Gebhardt, W.R., C.M.C. Lee, and B. Swaminathan, 2001, Toward an implied cost of capital, Journal of Accounting Research, 39(1): 135-176.
Comment