Dear all,
With some help of Peter Solymos, Ken Kellner and Mathias Tobler I compiled the attached memo that shows you some functions to run WinBUGS, OpenBUGS and JAGS in parallel. With jobs that take between hours and days, parallelization can make a real difference.
Best regards -- Marc
_____________________________________________________________
Marc Kéry
Tel. ++41 41 462 97 93
marc...@vogelwarte.ch
www.vogelwarte.ch
Swiss Ornithological Institute | Seerose 1 | CH-6204 Sempach | Switzerland
______________________________________________________________
Willkommen im neuen Besuchszentrum in Sempach!
http://www.vogelwarte.ch/de/besuch/
Bienvenu au nouveau centre de visite à Sempach! http://www.vogelwarte.ch/fr/visite/
*** Hierarchical modeling books ***
(4) Kéry & Royle (2017): AHM Volume 2, Dynamic and advanced models, in prep.
(3) Kéry & Royle (2016): Applied hierarchical modeling in ecology, Academic Press, Volume 1, Prelude and Static Models, see
www.mbr-pwrc.usgs.gov/pubanalysis/keryroylebook/
(2) Kéry & Schaub (2012): Bayesian Population Analysis using WinBUGS, Academic Press; see
www.vogelwarte.ch/bpa
(1) Kéry (2010): Introduction to WinBUGS for Ecologists, Academic Press; see
www.mbr-pwrc.usgs.gov/pubanalysis/kerybook
*** Hierarchical modeling workshops ***
www.phidot.org/forum/viewforum.php?f=8
*** Hierarchical modeling Google Group mailing lists ***
(1) unmarked: for questions specific to the R package unmarked
(2) hmecology: for material covered in Royle & Dorazio (2008), Kéry & Schaub (2012), Kéry & Royle (2015); see groups.google.com/forum/?hl=en#!forum/hmecology
Marc, Peter, Ken and Matthias,
Great resource!
Thanks!
--
*** Three hierarchical modeling email lists ***
(1) unmarked: for questions specific to the R package unmarked
(2) SCR: for design and Bayesian or non-bayesian analysis of spatial capture-recapture
(3) HMecology (this list): for everything else, especially material covered in the books by Royle & Dorazio (2008), Kéry & Schaub (2012), Kéry & Royle (2015)
---
You received this message because you are subscribed to the Google Groups "hmecology: Hierarchical Modeling in Ecology" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hmecology+...@googlegroups.com.
To post to this group, send email to hmec...@googlegroups.com.
Visit this group at https://groups.google.com/group/hmecology.
To view this discussion on the web visit https://groups.google.com/d/msgid/hmecology/F801018864E940468323F405DF95D2DD17587999%40MailNT.vogelwarte.ch.
For more options, visit https://groups.google.com/d/optout.
library(dclone)
ncl <- 3
cl <- makePSOCKcluster(ncl) clusterEvalQ(cl, library(dclone)) parLoadModule(cl, "glm") pm <- jags.parfit(cl, data, "beta", model, n.chains=ncl)
stopCluster(cl)
cl <- makePSOCKcluster(ncl)
parJagsModel(cl, name="res", file=model, data=data,
n.chains = ncl, n.adapt=1000)
parUpdate(cl, "res", n.iter=1000) # burnin
m <- parCodaSamples(cl, "res", jpara, n.iter=2000)
# you can keep sampling here until you shut down the cluster
stopCluster(cl)
Cheers,
Peter--
*** Three hierarchical modeling email lists ***
(1) unmarked: for questions specific to the R package unmarked
(2) SCR: for design and Bayesian or non-bayesian analysis of spatial capture-recapture
(3) HMecology (this list): for everything else, especially material covered in the books by Royle & Dorazio (2008), Kéry & Schaub (2012), Kéry & Royle (2016, 2020)
---
You received this message because you are subscribed to the Google Groups "hmecology: Hierarchical Modeling in Ecology" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hmecology+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hmecology/359f7b39-9a01-4466-ac59-4c955f411c39n%40googlegroups.com.