Generate control Settings for an hhh4 Model
Generate control
Settings for an hhh4
Model
makeControl(f = list(~1), S = list(0, 0, 1), period = 52, offset = 1, ...)
f, S, period |
arguments for |
offset |
multiplicative component offsets in the order ( |
... |
further elements for the |
a list for use as the control
argument in hhh4
.
Sebastian Meyer
makeControl() ## a simplistic model for the fluBYBW data ## (first-order transmission only, no district-specific intercepts) data("fluBYBW") mycontrol <- makeControl( f = list(~1, ~1, ~t), S = c(1, 1, 3), offset = list(population(fluBYBW)), # recycled -> in all components ne = list(normalize = TRUE), verbose = TRUE) str(mycontrol) ## Not run: fit <- hhh4(fluBYBW, mycontrol)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.