bets.likelihood.unconditional function

Approximate profile likelihood

Approximate profile likelihood

bets.likelihood.unconditional(params, data, params_init = NULL, L = NULL)

Arguments

  • params: A vector of parameters (names: rho, r, ip_q50, ip_q95)
  • data: A data frame with three columns: B, E, S
  • params_init: Initial parameters for computing the profile likelihood
  • L: Day of travel quarantine

Returns

When params contains all the parameters (rho, r, ip_q50, ip_q95), returns the approximate log-likelihood of data. When params contains some but not all the parameters, returns the profile log-likelihood.