ar2_lag: Function to obtain AR2 weights This function generates AR2...

View source: R/get_geom_lags.R

ar2_lagR Documentation

Function to obtain AR2 weights This function generates AR2 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.

Description

Function to obtain AR2 weights This function generates AR2 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.

Usage

ar2_lag(par_lag, min_lag, max_lag)

Arguments

par_lag

a parameter to steer the lag structure, here logit(p) where p is the weight of the first lag; see details of hhh4lag or profile_par_lag.

min_lag

smallest lag to include; the support of the Poisson form starts only at min_lag. Defaults to 1.

max_lag

highest lag to include; higher lags are cut off and he remaining weights standardized. Defaults to 5.


jbracher/hhh4addon documentation built on Feb. 16, 2024, 1:45 a.m.