R/Sharpe.ratio.R

#' Computing Sharpe Ratio
#'
#' @param rp portfolio return
#' @param rf risk-free return
#' @param sd standard deviation of portfolio retwns
#' @seealso \code{\link{coefficient.variation}}
#' @seealso \code{\link{SFRatio}}
#' @export
#' @examples
#' Sharpe.ratio(rp=0.038,rf=0.015,sd=0.07)
Sharpe.ratio <- function(rp,rf,sd){
  return((rp-rf)/sd)
}

Try the FinCal package in your browser

Any scripts or data that you put into this service are public.

FinCal documentation built on May 2, 2019, 1:29 p.m.