Hello.
I am working on an empirical project in accounting and need help in generating a dummy variable.
My point of reference is an article published in the Accounting Review (Cheng, 2004). The author states on page 310 how he obtains the variable "myopia." It equals 1 if a firm faces a small earnings decline or a small loss in a given year, and 0 otherwise. Specifically, firm i in year t faces a small earnings decline if it satisfies two conditions: (1) pretax incomeit + R&D expendituresit < pretax incomeit-1 + R&D expendituresit-1, and (2) pretax incomeit + R&D expendituresit > pretax incomeit-1. Firm i in year t has a small loss if -1 percent ≤ pretax incomeit / market value of equityit-1 < 0.
I have panel data for firms over years, as the author does, and have also all the variables that are necessary to generate the variable "myopia", namely pretax income, R&D expenditures, their lags, and the lag of market value of equity. I face some difficulty in specifying the code for generating the variable in Stata 17 and would be grateful for your help.
I am working on an empirical project in accounting and need help in generating a dummy variable.
My point of reference is an article published in the Accounting Review (Cheng, 2004). The author states on page 310 how he obtains the variable "myopia." It equals 1 if a firm faces a small earnings decline or a small loss in a given year, and 0 otherwise. Specifically, firm i in year t faces a small earnings decline if it satisfies two conditions: (1) pretax incomeit + R&D expendituresit < pretax incomeit-1 + R&D expendituresit-1, and (2) pretax incomeit + R&D expendituresit > pretax incomeit-1. Firm i in year t has a small loss if -1 percent ≤ pretax incomeit / market value of equityit-1 < 0.
I have panel data for firms over years, as the author does, and have also all the variables that are necessary to generate the variable "myopia", namely pretax income, R&D expenditures, their lags, and the lag of market value of equity. I face some difficulty in specifying the code for generating the variable in Stata 17 and would be grateful for your help.

Comment