Description Usage Arguments Author(s) See Also Examples
A function to calculate a function over an expanding window from the start of the timeseries. This wrapper allows easy calculation of “from inception” statistics.
1 | apply.fromstart(R, FUN = "mean", gap = 1, ...)
|
R |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
FUN |
any function that can be evaluated using a single set of returns
(e.g., rolling beta won't work, but |
gap |
the number of data points from the beginning of the series required to “train” the calculation |
... |
any other passthru parameters |
Peter Carl
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.