distr_lag: Display the function and parameters used for distributed lags

View source: R/get_geom_lags.R

distr_lagR Documentation

Display the function and parameters used for distributed lags

Description

Display the function and parameters used for distributed lags

Usage

distr_lag(hhh4Obj)

Arguments

hhh4Obj

an object of class hhh4

Value

A list containing the function and parameters characterizing the lag weights (for both the ar and ne components)

Examples

data("salmonella.agona")
## convert old "disProg" to new "sts" data class
salmonella <- disProg2sts(salmonella.agona)
# specify and fit model: fixed geometric lag structure
# with weight 0.8 for first lag
control_salmonella <- list(end = list(f = addSeason2formula(~ 1)),
                           ar = list(f = addSeason2formula(~ 1),
                           par_lag = 0.8),
                           family = "NegBinM", subset = 6:312)
fit_salmonella <- hhh4_lag(salmonella, control_salmonella)
distr_lag(fit_salmonella)

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