Description Usage Arguments Value Author(s) References See Also Examples

Calculates vector of balances based on initial balance and vector of ratios from one time point to the next (i.e. proportion gains + 1). The formula is simply: `initial * cumprod(ratios)`

.

1 |

`ratios` |
Numeric vector of ratios between subsequent investment prices (i.e. proportion gains + 1). For example, if a stock gained 3%, lost 1%, then lost 2%, |

`initial` |
Initial balance. |

Numeric vector indicating balance at each time point.

Dane R. Van Domelen

Acknowledgment: This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. DGE-0940903.

1 2 3 4 5 6 7 8 9 |

stocks documentation built on May 31, 2017, 3:18 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.