Learn R Programming

PerformanceAnalytics (version 0.9.5)

Return.cumulative: calculate a compounded (geometric) cumulative return

Description

This is a useful function for calculating cumulative return over a period of time, say a calendar year. Can produce simple or geometric return.

Usage

Return.cumulative(R, geometric = TRUE)

Arguments

R
a vector, matrix, data frame, timeSeries or zoo object of asset returns
geometric
generate geometric (TRUE) or simple (FALSE) returns, default TRUE

Value

  • cumulative simple or geometric return

Details

product of all the individual period returns

$$(1+r_{1})(1+r_{2})(1+r_{3})\ldots(1+r_{n})-1=prod(1+R)-1$$

References

Bacon, Carl. Practical Portfolio Performance Measurement and Attribution. Wiley. 2004. p. 6

See Also

Return.annualized

Examples

Run this code
data(edhec)
head(edhec[,13,drop=FALSE])
Return.cumulative(edhec[,13])
Return.cumulative(edhec[,13], geometric = FALSE)

Run the code above in your browser using DataLab