Displaying 1 result from an estimated 1 matches for "cjs22time".
2012 Jan 27
0
Error in JAGS, cannot monitor z
...# State process
z[i,t] ~ dbern(mu1[i,t])
mu1[i,t] <- phi[i,t-1] * z[i,t-1]
# Observation process
y[i,t] ~ dbern(mu2[i,t])
mu2[i,t] <- p[i,t-1] * z[i,t]
} #t
} #i
}
ni <- 10000
nt <- 6
nb <- 5000
nc <- 3
cjs.ran <- jags.model(file="cjs22time.jags",data=bugs.data, n.chains =
nc,n.adapt=2000)
coda.cjs<-coda.samples(cjs.ran,c("z"),n.iter=5000,thin=5)
Any idea why would not trace z node?
Thank you.
--
View this message in context: http://r.789695.n4.nabble.com/Error-in-JAGS-cannot-monitor-z-tp4333685p4333685.html
Sent...