pt.annrtn {YRmisc} | R Documentation |
This function takes a series of annual returns and calculate the annualized return.
pt.annrtn(r,n)
r |
:annual returns |
n |
:number of years |
r <- runif(100,-1,1) # generate random number to simulate returns
annualizedreturn <- pt.annrtn(r,100)