sharpe | R Documentation |
Function which computes the Sharpe ratio.
sharpe(X, na.rm = TRUE)
X |
Vector (of length |
na.rm |
A logical value indicating whether |
The Sharpe ratio (Sharpe 1992) is one industry standard for measuring the absolute risk adjusted performance of hedge funds.
A scalar or a vector (of size N
) with the Sharpe ratios.
David Ardia and Kris Boudt.
Ardia, D., Boudt, K. (2015). Testing equality of modified Sharpe ratios. Finance Research Letters 13, pp.97–104. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.frl.2015.02.008")}
Ardia, D., Boudt, K. (2016). The Peer Ratios Performance of Hedge Funds. Working paper. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.2139/ssrn.2000901")}
Sharpe, W.F. (1994). The Sharpe ratio. Journal of Portfolio Management 21(1), pp.49–58. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.3905/jpm.1994.409501")}
sharpeTesting
, sharpeScreening
and
msharpe
.
## Load the data
data('hfdata')
## Compute the Sharpe ratio
out = sharpe(hfdata)
print(out)
out = sharpe(hfdata, na.rm = FALSE)
print(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.