Description Usage Arguments Details Value See Also
Computes Almon polynomial weighting curves. Handy to selfselect specific time aggregation weighting schemes
for input in ctr_agg
using the weights
argument.
1  weights_almon(n, orders = 1:3, do.inverse = TRUE, do.normalize = TRUE)

n 
a single 
orders 
a 
do.inverse 

do.normalize 
a 
The Almon polynomial formula implemented is: (1  (1  i/n)^r) * (1  i/n)^(R  r), where i is the lag index ordered from 1 to n. The inverse is computed by changing i/n to 1  i/n.
A data.frame
of all Almon polynomial weighting curves, of size length(orders)
(times two if
do.inverse = TRUE
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.