serial.helper {REffectivePred} | R Documentation |
Serial interval
Description
Helper function for computing weights w
based on the serial interval.
Usage
serial.helper(window_size, serial_mean = log(4), serial_var = log(1.380715))
Arguments
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. |
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.
Value
A vector that stores the serial interval in reverse order. This is meant to be multiplied to infections in chronological order.
[Package REffectivePred version 1.0.0 Index]