linear_lag | R Documentation |
This function generates linearly decaying weights which are subsequently used inside of get_weighted_lags
. To be passed
to hhh4_lag
or profile_par_lag
as the control$funct_lag
argument. There are different ways of
specifying linearly decaying weights, the version implemented here is
u0_q = max(1 - mq, 0)
and u_q = u0_q / sum_{q = 1}^Q u0_q
for q = 1, ..., Q
.
linear_lag(par_lag, min_lag, max_lag)
par_lag |
a parameter to steer the lag structure, here |
min_lag |
smallest lag to include; the support of the Poisson form starts only at |
max_lag |
highest lag to include; higher lags are cut off and he remaining weights standardized. Defaults to 5. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.