PainRatio {JFE} | R Documentation |
Pain ratio of the return distribution
Description
To calculate Pain ratio we divide the difference of the portfolio return and the risk free rate by the Pain index
Usage
PainRatio(R, Rf = 0)
Arguments
R |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
Rf |
risk free rate, in same period as your returns |
Details
where is the annualized portfolio return,
is the risk free
rate,
is the number of observations of the entire series,
is
the drawdown since previous peak in period i
Author(s)
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
References
Carl Bacon, Practical portfolio performance measurement
and attribution, second edition 2008 p.91
See also package PerformanceAnalytics
.
Examples
data(assetReturns)
assetReturns=assetReturns["2011::2018"] #short sample for fast example
R=assetReturns[, -29]
PainRatio(R)
[Package JFE version 2.5.7 Index]