corinne-riddell / BlackWhiteMortalityGap

2 stars 3 forks source link

exact replication of mcmc results in jags #257

Closed kathryntmorrison closed 7 years ago

kathryntmorrison commented 7 years ago

To replicate results in JAGS, you have to set the seed for the mcmc sampling outside of the jags function, unless you're using the jags.parallel functions (that runs the chains across multiple cores). We parallelize across states not across chains, so we have to set the seed externally.

See this gist for example code that replicates results:

https://gist.github.com/kathryntmorrison/97335875f47bfe9cb9e57313eda36828

kathryntmorrison commented 7 years ago

ping @corinne-riddell 🐶

corinne-riddell commented 7 years ago

👍 thank you!