Estimate serial interval using the EM Algorithm as developed by Vink et al. (2014)
Source:R/si_estim.R
si_estim.Rd
This function estimates the serial interval using the Expectation-Maximization (EM) algorithm.
Arguments
- dat
vector; a numeric vector of index case to case intervals
- n
integer; number of iterations for EM algorithm; defaults to n = 50
- dist
string; assumed distribution of the serial interval; takes "normal" or "gamma"; defaults to "normal".
- init
numeric vector of length 2 specifying the initial values to use for the mean and standard deviation. If init= NULL, then the sample mean and sample standard deviation each divided by 4 is used.