View source: R/forecasting_practical.R
likelihood_profile_seir | R Documentation |
likelihood_profile_seir
calculates the log likelihood of the model
given the data, for a range of R_0. The other parameters are fixed
likelihood_profile_seir(
incidence_data,
current_week,
starting_week,
R_0_min,
R_0_max
)
incidence_data |
incidence data extracted by |
current_week |
numeric vector of length 1: week number of the current week |
starting_week |
numeric vector of length 1: guess for week number when the epidemic started. Use data from starting week to current week to predict |
R_0_min |
numeric vector of length 1: lower bound of R_0 values over which to construct likelihood profile |
R_0_max |
numeric vector of length 1: upper bound of R_0 values over which to construct likelihood profile |
a data frame with the following columns: R_0_vec: numeric vector of R_0 values which we're scanning over log_likelihood_vec: log likelihood for those values of R_0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.