Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[f6b153]: classic-bugs / vol1 / salm / test1.R Maximize Restore History

Download this file

test1.R    10 lines (9 with data), 325 Bytes

1
2
3
4
5
6
7
8
9
source("../../R/Rcheck.R")
d <- read.jagsdata("salm-data.R")
inits <- read.jagsdata("salm-init.R")
m <- jags.model("salm.bug", d, inits, n.chains=2, n.adapt=10000)
update(m, 1000)
x <- coda.samples(m, c("alpha","beta","gamma","sigma","deviance"),
n.iter=50000, thin=10)
source("bench-test1.R")
check.fun()