weights_almon {sentometrics} | R Documentation |
Compute Almon polynomials
Description
Computes Almon polynomial weighting curves. Handy to self-select specific time aggregation weighting schemes
for input in ctr_agg
using the weights
argument.
Usage
weights_almon(n, orders = 1:3, do.inverse = TRUE, do.normalize = TRUE)
Arguments
n |
a single |
orders |
a |
do.inverse |
|
do.normalize |
a |
Details
The Almon polynomial formula implemented is:
, where
is the lag index ordered from
1 to
. The inverse is computed by changing
to
.
Value
A data.frame
of all Almon polynomial weighting curves, of size length(orders)
(times two if
do.inverse = TRUE
).
See Also
[Package sentometrics version 1.0.0 Index]