If I try to estimate the likelihood of R based on incidence data that has no cases at the end of the observation period, the maximum likelihood of R is estimated to be 0.
Below is an example using a measles outbreak from 1861.
And then attempt to estimate R for this observation window:
R_subset <- get_R(measles_hagelloch_incidence_sub, si_mean = 10.89, si_sd = 1.63, max_R = 10)
If I try to estimate the likelihood of R based on incidence data that has no cases at the end of the observation period, the maximum likelihood of R is estimated to be 0.
Below is an example using a measles outbreak from 1861.
You'll need these packages
We are using this dataset:
measles_hagelloch_1861
We then make an incidence object out of the measles data and take a subset that has few cases at the end of the observation period:
And then attempt to estimate R for this observation window:
R_subset <- get_R(measles_hagelloch_incidence_sub, si_mean = 10.89, si_sd = 1.63, max_R = 10)
R is estimated to be 0 as seen in:
plot(R3)