powered by
Calculates the Tracking Error
tracking.error(R1, R2)
Returns of the portfolio
Returns of the benchmark
Calculates the Tracking error of the security
Tracking error is the divergence between the price behavior of a position or a portfolio and the price behavior of a benchmark.
# NOT RUN { tracking.error(funds$ret1, funds$rfr) # }
Run the code above in your browser using DataLab