Learn R Programming

PerformanceAnalytics (version 2.0.8)

Return.relative: calculate the relative return of one asset to another

Description

Calculates the ratio of the cumulative performance for two assets through time.

Usage

Return.relative(Ra, Rb, ...)

Value

xts or other time series of relative return

Arguments

Ra

an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns

Rb

return object for the benchmark asset

...

ignored

Author

Peter Carl

See Also

chart.RelativePerformance

Examples

Run this code

data(managers)
head(Return.relative(managers[,1:3], managers[,8,drop=FALSE]),n=20)

Run the code above in your browser using DataLab