View source: R/prediction_model.v16.R
serial.helper | R Documentation |
Helper function for computing weights w
based on the serial interval.
serial.helper(window_size, serial_mean = log(4), serial_var = log(1.380715))
window_size |
The maximum value for the serial interval. |
serial_mean |
Mean of the serial interval on the log scale. See Details. |
serial_var |
Variance of the serial interval on the log scale. See Details. |
Computed based on a log normal density function, as in Nishiura et al. (2020). Parameters
serial_mean
and serial_var
are arguments meanlog
and sdlog
of
function dlnorm
. Default values are taken from the same reference.
A vector that stores the serial interval in reverse order. This is meant to be multiplied to infections in chronological order.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.