makeControl | R Documentation |
control
Settings for an hhh4
ModelGenerate 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
.
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)
if (surveillance.options("allExamples"))
## fit this model
fit <- hhh4(fluBYBW, mycontrol)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.