Nothing
###############################################################################################
##### tracking error
###############################################################################################
#' @name pt.te
#' @aliases pt.te
#' @title Tracking error
#' @description Tracking error, in finance, is a measure of risk in a portfolio that is due to active management
#' decisions made by the manager. It indicates how closely the portfolio follows the benchmark of choosing.
#' @usage pt.te(pr,br)
#' @param pr :portfolio return
#' @param br :benchmark return
#' @examples prtn <- runif(12,-1,1)
#' brtn <- runif(12,-1,1)
#' pt.te(prtn,brtn)
pt.te <- function(pr,br){
te <- sqrt(var(pr - br))
return(te)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.