powered by
Cumulative return is the compounded return in a given period.
pt.cmrtn(r)
:a vector of periodic returns
# NOT RUN { rt <- runif(12,-1,1) # generate random number to simulate returns pt.cmrtn(rt) # }
Run the code above in your browser using DataLab