Open stevencarlislewalker opened 8 months ago
Related to #94
info from macpan1.5 is here (note this is not available publicly)
simplest possible hazard correction example here.
Hazard correction works conditional on having at least one infectious individual at time zero, otherwise S.E flow is NaN.
Hazard correction works conditional on having at least one infectious individual at time zero, otherwise S.E flow is NaN.
Thanks @jfree-man. I think this is a minimal example.
si = (mp_tmb_library("starter_models", "si", package = "macpan2")
|> mp_tmb_update(default = list(I = 0))
)
(si
|> mp_hazard()
|> mp_simulator(5L, "I")
|> mp_trajectory()
)
I also think that this is fixed on the likelihood branch. Could be fixed elsewhere, but the key to the fix I think is the proportions
function on the cpp
side.
Default parameter values, simulated data from macpan1.5
, and observed data for calibration are available on the likelihood
branch here. In the future, data should be accessible from the package and shouldn't necessarily require running a data fetching script every time it's needed.
macpan2
implementation herebeta0
On the likelihood branch, update the model library specification and calibration script to use real data and reflect the changes here.
reports
andW
)mp_tmb_insert_reports
)mp_neg_bin
,mp_normal
)