computes rolling returns
1 2 | get_rollChg_from_dlyChg(dlyChg, method = "geometric", roll = 30,
halflife = NULL, trim = FALSE, interval = c(1e-06, 0.999999))
|
dlyChg |
xts that contains daily changes |
method |
either 'arithmetic' or 'geometric' |
roll |
number of days in a rolling window |
halflife |
number of days that accumulate 0.5 density |
trim |
should the first rolling window be eliminated? |
interval |
as in uniroot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.