Dear All
I am collecting some data. this data needs a calculation process
I do understand the process but I don't know to do do a part of it.
The equaion as follows
ARi,t= Ri,t - MRt .....(1)
where is i stands for a firm, and t for the date. Ri,t is daily return, MR is the markt return.
Each firm or event (M&A) for each firm has even-dates like a range of time for example 5 or 10 days.
Firm R MR evendate
1 1.5 2 1-05-2021
1 2 2 2-05-2021
1 1 2 3-05-2021
1 0.5 2 4-05-2021
1 3 2 5-05-2021
in Eq.(1) AR refers to the abnormal return after M&A.
According to this I will have for example five values of ARi,t for each firm.
Then I want to calculate the Accumulative ARi,t
My question is whcih command for this
I know that the accumulative value is calculated by adding the previous values to the current one so on.
But here I have to limit it based on the evendate variable
please someone give me the command for this
Best,
I am collecting some data. this data needs a calculation process
I do understand the process but I don't know to do do a part of it.
The equaion as follows
ARi,t= Ri,t - MRt .....(1)
where is i stands for a firm, and t for the date. Ri,t is daily return, MR is the markt return.
Each firm or event (M&A) for each firm has even-dates like a range of time for example 5 or 10 days.
Firm R MR evendate
1 1.5 2 1-05-2021
1 2 2 2-05-2021
1 1 2 3-05-2021
1 0.5 2 4-05-2021
1 3 2 5-05-2021
in Eq.(1) AR refers to the abnormal return after M&A.
According to this I will have for example five values of ARi,t for each firm.
Then I want to calculate the Accumulative ARi,t
My question is whcih command for this
I know that the accumulative value is calculated by adding the previous values to the current one so on.
But here I have to limit it based on the evendate variable
please someone give me the command for this
Best,
Comment