Introduction To Financial Risk Management (With R) Exercise 4 - Longer Horizon Returns of Gold
Introduction To Financial Risk Management (With R) Exercise 4 - Longer Horizon Returns of Gold
Overview
The goal of this exercise is to use R to calculate weekly, monthly, quarterly, and yearly log
returns and discrete returns for Gold.
We then used the following R commands to calculate longer horizon log returns:
logret.w <- apply.weekly(logret,sum)
logret.m <- apply.monthly(logret,sum)
logret.q <- apply.quarterly(logret,sum)
logret.y <- apply.yearly(logret,sum)