Description Usage Arguments Details Value Author(s) Examples
Run HMC multiple chains in parrellele.
1 | HMC.cluster(nu.chains = 4, iterartion = 10000, startvalue = rep(0, 50))
|
nu.chains |
Number of chains |
iterartion |
Number of iterations |
startvalue |
Initial value. |
Needs snow
mcmcchain is a mcmc.list in coda and valuechain store the value as a list. In each valuechain[[i]], there is a matrix store the multidimentional simulations.
Yifan Yang
1 2 3 4 5 6 | #examples from HMC-clustered:
## Not run:
system.time(X.flows <- HMC.cluster())
hmc.sum<-summary(X.flows$mcmcchain)
sum(hmc.sum$quantiles[,3]^2)
## End(**Not run**)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.