| weights_beta | R Documentation |
Computes Beta weighting curves as in Ghysels, Sinko and Valkanov (2007). Handy to self-select specific
time aggregation weighting schemes for input in ctr_agg using the weights argument.
weights_beta(n, a = 1:4, b = 1:4, do.normalize = TRUE)
n |
a single |
a |
a |
b |
a |
do.normalize |
a |
The Beta weighting abides by following formula:
f(i/n; a, b) / \sum_{i}(i/n; a, b), where i is the lag index ordered
from 1 to n, a and b are two decay parameters, and
f(x; a, b) = (x^{a - 1}(1 - x)^{b - 1}\Gamma(a + b)) / (\Gamma(a)\Gamma(b)), where \Gamma(.) is
the gamma function.
A data.frame of beta weighting curves per combination of a and b. If n = 1,
all weights are set to 1.
Ghysels, Sinko and Valkanov (2007). MIDAS regressions: Further results and new directions. Econometric Reviews 26, 53-90, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/07474930600972467")}.
ctr_agg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.