mrc-ide / odin

ᚩ A DSL for describing and solving differential equations in R
https://mrc-ide.github.io/odin
Other
102 stars 12 forks source link

Does this package implement MCMC instead of PMCMC #311

Open whzhuscu opened 5 months ago

whzhuscu commented 5 months ago

Sorry, this may be a stupid question, but could this package (mcstate) implement MCMC instead of PMCMC?

whzhuscu commented 5 months ago

If I use the Stochastic SIR model in MCMC (https://mrc-ide.github.io/mcstate/articles/continuous.html), there is error.

filter <- mcstate::particle_deterministic$new(data = sir_data, model = sir,
                                       index = index, compare = NULL)

filter$run(save_history = TRUE, pars = list())
ERROR: Expected single double value

And the model is this:

gen_sir <- dust::dust_example("sir")