Earnings Management: The Effect of Accounting Flexibility on R&D Investment Choices