[a03147]: classic-bugs / vol2 / stagnant / test2.R Maximize Restore History

Download this file

test2.R    10 lines (8 with data), 292 Bytes

1
2
3
4
5
6
7
8
source("../../R/Rcheck.R")
data <- read.jagsdata("stagnant-data.R")
inits <- read.jagsdata("stagnant-inits4.R")
m <- jags.model("stagnant2.bug", data, inits, n.chains=2)
update(m, 1000)
x <- coda.samples(m, c("alpha", "x.change"), thin=10, n.iter=100000)
source("bench-test2.R")
check.fun()