TreynorRatio: calculate Treynor Ratio or modified Treynor Ratio of excess return over CAPM beta
Description
The Treynor ratio is similar to the Sharpe Ratio, except it uses beta as the
volatility measure (to divide the investment's excess return over the beta).
https://en.wikipedia.org/wiki/Treynor_ratio,
Carl Bacon, Practical portfolio performance measurement
and attribution, second edition 2008 p.77
See also package PerformanceAnalytics.
data(assetReturns)
assetReturns=assetReturns["2011::2018"] #short sample for fast example Ra=assetReturns[, -29]
Rb=assetReturns[,29] #DJI
TreynorRatio(Ra, Rb)