Hey there,
I have calculated daily excess stock returns over 16 years and I want to calculate the realized bipolar variation of these excess returns like in the paper of Chung&Seo.
The formula is found on page 8 of the paper (equal to the paper from 2017 in the International Review of Economics and Finance but working paper is freely available):
๐(๐ก๐)^2 โก 1/ /(21โ2) โ๐=3 |๐๐ก ||๐๐กโ1|.
I am not sure how to do that. Probably with the rolling command or so?
Do you have an idea on the code I can use (the rt and rt-1 are simply the daily excess returns in my Stata database).
Regards,
Michael
I have calculated daily excess stock returns over 16 years and I want to calculate the realized bipolar variation of these excess returns like in the paper of Chung&Seo.
The formula is found on page 8 of the paper (equal to the paper from 2017 in the International Review of Economics and Finance but working paper is freely available):
๐(๐ก๐)^2 โก 1/ /(21โ2) โ๐=3 |๐๐ก ||๐๐กโ1|.
I am not sure how to do that. Probably with the rolling command or so?
Do you have an idea on the code I can use (the rt and rt-1 are simply the daily excess returns in my Stata database).
Regards,
Michael
Comment