powered by
The Treynor ratio is an analog to the sharp ratio, with standard deviation replaced by the asset beta to benchmark.
pt.treynor(ar,br,n,rf)
:a vector of a risk asset return
:a vector of benchmark return
:number of years of asset return, used to calculate annualized return
:risk free rate
# NOT RUN { rtn <- runif(24, -1, 1) brtn <- runif(24,-1,1) pt.treynor(rtn,brtn,2,0.024) # }
Run the code above in your browser using DataLab