At the moment I am trying to calculate returns however I am attempting to calculate annual returns based on the accumulation of monthly returns. The issue is that that reports are released at different months in the year and I want to add a 4 month lag on top of that, which means that measurement could start in the year after. The data contains numerous different companies too which I dont want results to run between. As a result, my idea is to create a lag that varies by lag length based on the month in which the annual report is released + 4 months. I am unsure if this is possible but who better to ask than Statalist!
I have variables for month of financial year end (fyr), financial year (fyear), returns (ret), company identifying code (permno) and most likely any other variables which could possible be needed.
Related Posts with Variable lag based on other variable.
The system GMM model.I am running the system GMM model in my study, what I need is to know the interpretation of all spec…
Power calculation- cross-over designHello, Does anyone have experience with power calculations in STATA for a crossover design? Trying …
Calculate the change in panel data.Hi Statalists, I have a panel data of 3200 firms for time span from 2004 to 2018 which contains the …
Problem with the egen commandDear Stata colleaguesColleagues, I am new to Stata, and am using Stata 14. I have this kind of natio…
Creating Lagged Variables for Last Month of Financial YearHi there, I need to create lagged variables to run as part of a Fama-MacBeth regression, and asreg …
Subscribe to:
Post Comments (Atom)
0 Response to Variable lag based on other variable.
Post a Comment