# Weekly data.
cases <- c(1, 4, 10, 5, 3, 4, 19, 3, 3, 14, 4)
# Obtain R0 when the serial distribution has a mean of five days.
idea(cases, mu = 5 / 7)
# Obtain R0 when the serial distribution has a mean of three days.
idea(cases, mu = 3 / 7)
Run the code above in your browser using DataLab