HMC.cluster: Run HMC multiple chains in parrellele.

Description Usage Arguments Details Value Author(s) Examples

View source: R/hamimc.R

Description

Run HMC multiple chains in parrellele.

Usage

1
HMC.cluster(nu.chains = 4, iterartion = 10000, startvalue = rep(0, 50))

Arguments

nu.chains

Number of chains

iterartion

Number of iterations

startvalue

Initial value.

Details

Needs snow

Value

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.

Author(s)

Yifan Yang

Examples

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

yfyang86/hamimc documentation built on Aug. 10, 2017, 8:42 a.m.