R/pt.info.R

Defines functions pt.info

Documented in pt.info

###############################################################################################
##### information ratio
###############################################################################################

#' @name pt.info
#' @aliases pt.info
#' @title Information ratio
#' @description The information ratio of asset's returns versus benchmark returns, is the
#' quotient of the annualized excess return and the annualized standard deviation of the excess
#' return.
#' @usage pt.info(ar,br,n)
#' @param ar :a vector of a risk asset return
#' @param br :a vector of benchmark return
#' @param n :number of years
#' @examples brtn <- runif(100, -1, 1)
#' artn <- runif(100, 0, 1)
#' pt.info(artn,brtn,100)

pt.info <- function(ar,br,n){

  er <- ar - br

  aart <- pt.annrtn(ar,n)

  abrt <- pt.annrtn(br,n)

  info <- (aart - abrt)/sd(er)

  return(info)
}

Try the YRmisc package in your browser

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

YRmisc documentation built on March 25, 2020, 5:13 p.m.