powered by
Cumulative return is the compounded return in a given period. The excess return is the difference between the cumulative return of a risky asset and the cumulative return of a benchmark.
pt.cmexrtn(ar,br)
:a vector of risky asset returns
:a vector of benchmark returns
# NOT RUN { brtn <- runif(12, -1, 1) artn <- runif(12, -1, 1) pt.cmexrtn(artn,brtn) # }
Run the code above in your browser using DataLab