BernardoLedoitRatio | R Documentation |
To calculate Bernardo and Ledoit ratio we take the sum of the subset of returns that are above 0 and we divide it by the opposite of the sum of the subset of returns that are below 0
BernardoLedoitRatio(R, ...)
R |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
... |
any other passthru parameters |
BernardoLedoitRatio(R) = 1/n*sum(t=1..n)(max(R(t),0)) / 1/n*sum(t=1..n)(max(-R(t),0))
where n is the number of observations of the entire series
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
Carl Bacon, Practical portfolio performance measurement
and attribution, second edition 2008 p.95.
See also package PerformanceAnalytics
.
data(assetReturns) BernardoLedoitRatio(R=assetReturns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.