Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this package implement MCMC instead of PMCMC #311

Open
whzhuscu opened this issue Feb 3, 2024 · 1 comment
Open

Does this package implement MCMC instead of PMCMC #311

whzhuscu opened this issue Feb 3, 2024 · 1 comment

Comments

@whzhuscu
Copy link

whzhuscu commented Feb 3, 2024

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

@whzhuscu
Copy link
Author

whzhuscu commented Feb 3, 2024

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant