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.
Stata Runs .Do File without errors to plot graph but nothing happensI've run into a problem after working with a .do file and dataset to draw a series of graphs, prior …
How to generate the lagged month local?I'm working with the data sets which are 1 month lag. For example, it's now May, but today the data …
Trying to assess yearly coverage for 5-year date ranges, using half (or more) of each year as the cutoff for coverageHi all, I am working with data involving coverage of a 5-year environmental safety plan for various…
Creating all possible firmpairs within each industryDear Statalist, The following shows a snippet of the dataset used: HTML Code: compid compname …
How do I obtain the parameters for rgamma() from a specified gamma modelI would like to obtains input parameters for the function gamma(a,b), where a is the gamma shape par…
Subscribe to:
Post Comments (Atom)
0 Response to Variable lag based on other variable.
Post a Comment