Module structure characteristics
Arguments
| incidence_data |
An object containing incidence data through time.
It can either be:
A list with two elements:
A numeric vector named values: the incidence recorded on consecutive time steps.
An integer named index_offset: the offset, counted in number of time steps,
by which the first value in values is shifted compared to a reference time step
This parameter allows one to keep track of the date of the first value in values
without needing to carry a date column around.
A positive offset means values are delayed in the future compared to the reference values.
A negative offset means the opposite.
A numeric vector. The vector corresponds to the values element
descrived above, and index_offset is implicitely zero.
This means that the first value in incidence_data
is associated with the reference time step (no shift towards the future or past).
|
| import_incidence_data |
NULL or argument with the same requirements as incidence_data.
If not NULL, this argument represents records of imported cases and
incidence_data represents local cases only. |
| partially_delayed_incidence |
An object containing incidence data through time.
It can be:
A list with two elements:
A numeric vector named values: the incidence recorded on consecutive time steps.
An integer named index_offset: the offset, counted in number of time steps,
by which the first value in values is shifted compared to a reference time step
This parameter allows one to keep track of the date of the first value in values
without needing to carry a date column around.
A positive offset means values are delayed in the future compared to the reference values.
A negative offset means the opposite.
A numeric vector. The vector corresponds to the values element
descrived above, and index_offset is implicitely zero.
This means that the first value in incidence_data
is associated with the reference time step (no shift towards the future or past).
|
| fully_delayed_incidence |
An object containing incidence data through time.
It can be:
A list with two elements:
A numeric vector named values: the incidence recorded on consecutive time steps.
An integer named index_offset: the offset, counted in number of time steps,
by which the first value in values is shifted compared to a reference time step
This parameter allows one to keep track of the date of the first value in values
without needing to carry a date column around.
A positive offset means values are delayed in the future compared to the reference values.
A negative offset means the opposite.
A numeric vector. The vector corresponds to the values element
descrived above, and index_offset is implicitely zero.
This means that the first value in incidence_data
is associated with the reference time step (no shift towards the future or past).
|
| simplify_output |
boolean. Return a numeric vector instead of module
output object if output offset is zero? |
Value
A list with two elements:
A numeric vector named values: the result of the computations on the input data.
An integer named index_offset: the offset, counted in number of time steps,
by which the result is shifted compared to an index_offset of 0.
This parameter allows one to keep track of the date of the first value in values
without needing to carry a date column around.
A positive offset means values are delayed in the future compared to the reference values.
A negative offset means the opposite.
Note that the index_offset of the output of the function call
accounts for the (optional) index_offset of the input.
If index_offset is 0 and simplify_output = TRUE,
the index_offset is dropped and the values
element is returned as a numeric vector.