Return.relative | R Documentation |
Calculates the ratio of the cumulative performance for two assets through time.
Return.relative(Ra, Rb, ...)
Ra |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
Rb |
return object for the benchmark asset |
... |
ignored |
xts or other time series of relative return
Peter Carl
chart.RelativePerformance
data(managers)
head(Return.relative(managers[,1:3], managers[,8,drop=FALSE]),n=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.