geometric_lag: Function to obtain geometric weights This function generates...

View source: R/get_geom_lags.R

geometric_lagR Documentation

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

geometric_lag(par_lag, min_lag, max_lag)

Arguments

par_lag

a parameter to steer the lag structure, here logit(p) where p is the parameter of the geometric distribution characterizing the lag structure; 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.