sharpe_ratio: Sharpe Ratio

Description Usage Arguments Note Examples

View source: R/QuantAnalysis.R

Description

Sharpe Ratio

Usage

1
sharpe_ratio(ret, rf, freq)

Arguments

ret

data.frame containing returns

rf

either numeric value representing annual risk-free rate or data.frame containing risk-free time-series

freq

character representing frequency

Note

Sharpe ratio = (annualized return less annual risk-free rate) / annualized volatility

Examples

1
2
3
4
data(ETF)
data(FF)
sharpe_ratio(ret, ff$ff_ret, 'd')
sharpe_ratio(ret, 0.02, 'd')

alejandro-sotolongo/InvestmentSuite documentation built on Jan. 19, 2020, 5:20 p.m.