Displaying 7 results from an estimated 7 matches for "nchain".
Did you mean:
chain
2005 Jun 08
6
Random seed problem in MCMC coupling of chains
Hello!
I am performing coupling of chains in MCMC and I need the same value
of seed for two chains. I will show demo of what I want:
R code, which might show my example is:
niter <- 3
nchain <- 2
tmpSeed <- 123
for (i in 1:niter) { # iterations
for (j in 1:nchain) { # chains
set.seed(tmpSeed)
a <- runif(1)
cat("iter:", i, "chain:", j, "runif:", a, "\n")
tmpSeed <- .Random.seed
}
}
I get this:
iter: 1 chain: 1 run...
2009 Aug 16
2
Question regarding finding credible interval using r2winbugs
Dear
I am trying to find a 90% credible interval. I am using the following
code.
fit<-bugs(
model.file=BUGScode,
data=data,
inits = list(geninits1,geninits2),
parameters.to.save=keepers,
n.chains=nchains,
n.iter=runs,
n.burnin=burn,
n.thin=nthin,
DIC= TRUE,
bugs.directory="C:/Program Files/WINBUGS.14",
\
)
But this is only giving 95% credible interval. How can I get 90%, 80%
credible intervals using r2winbugs?
Pls help.
Waiting for your response.
Sa...
2015 Jul 21
5
[LLVMdev] Some thought on handling ELF shared libraries in lld
...section
headers, but there are a few issues:
* The intention of the spec seems to be for everything static to use
the section headers and everything dynamic to use the program headers.
* Finding the number of symbols with the program header in a
traditional ELF file is a hack. One has to read the nchain field of
the hash table.
* It doesn't seem even possible to find that information in files
using the newer gnu hash format
(https://blogs.oracle.com/ali/entry/gnu_hash_elf_sections).
Given that, it looks like we should use the sections. For what it is
worth, it looks like that is what every ot...
2009 May 30
1
Help for running R2WINBUGS in VISTA
Dear,
I am running the following R code using the R2WINBUGS package.
fit<-bugs(
model.file=BUGScode,
data=data,
inits = list(geninits1,geninits2),
parameters.to.save=keepers,
n.chains=nchains,
n.iter=runs,
n.burnin=burn,
n.thin=nthin,
bugs.directory="C:/Program Files/WinBUGS14"
)
I put this code and the corresponding WINBUGS code "BUGScode" in the same
folder and change the directory of R into that folder. When I am running
this code in the Windows XP, "...
2012 Aug 13
0
rjags error. Error parsing model file:,syntax error on line 5 near ""
...-------------------------------------------------
# A set of init statements goes here, but I haven't done that.
#-----------------------------------------------------------
# RUN CHAIN
parameters = c("lam[2]","lam[3]","lam[4]")
adaptSteps = 500
burnInSteps = 500
nChains = 3
numSavedSteps = 50000
thinSteps = 1
cfaModel = jags.model("model.txt",data=cfadata,
n.chains=nChains, n.adapt=adaptSteps)
# Burn-in:
cat("Burning in the MCMC chain ...\n")
update(cfaModel, n.iter=burnInSteps)
cat("Sampling from the final MCMC...
2005 Jun 08
1
FW: Random seed problem in MCMC coupling of chains
...n that is what is required.
In your example it is important that you generate the same number of
random numbers in each pass through the chain. If that is not the case
then even with the setRNG utilities there is a subtle change that you
are introducing.
HTH,
Paul
>
> niter <- 3
> nchain <- 2
startingRNG <- setRNG()
> for (i in 1:niter) { # iterations
> tmpSeed <- setRNG()
> for (j in 1:nchain) { # chains
> setRNG(tmpSeed)
> a <- runif(1)
> cat("iter:", i, "chain:", j, "runif:", a, "\n")
>...
2013 Oct 03
2
[Bug 855] New: Can create user chains with names unparsable by iptables-restore
...sts.netfilter.org
ReportedBy: andrew at domaszek.com
Estimated Hours: 0.0
iptables allows the creation of user defined chains with whitespace or
unprintable characters which cannot be properly parsed by iptables-restore.
Steps to reproduce:
root at hephaestus:~# iptables -N $'bad\nchain.'
root at hephaestus:~# iptables-save
# Generated by iptables-save v1.4.14 on Wed Oct 2 21:57:39 2013
*filter
:INPUT ACCEPT [29:2180]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [15:1516]
:bad
chain. - [0:0]
COMMIT
# Completed on Wed Oct 2 21:57:39 2013
root at hephaestus:~# iptables-save > rulel...