I want to calculate the average return for all companies at one time/ one month + the next ten month
example:
first observation period: june 1998 + 10 month
-->so the average of june 1998 - march 1999
second observation period: july 1998 +10 month
-->so the average period: july1998 -april 1999
i want to do this for the whole data.
It would be really nice if you can help me with this code .
Best regards
example:
first observation period: june 1998 + 10 month
-->so the average of june 1998 - march 1999
second observation period: july 1998 +10 month
-->so the average period: july1998 -april 1999
i want to do this for the whole data.
It would be really nice if you can help me with this code .
Best regards
Comment