I read your post on censored data

http://doingbayesiandataanalysis.blogspot.com/2012/01/complete-example-of-right-censoring-in.htmland I am wondering if you know how JAGS internally imputes the censored values. In the post, you indicated that the likelihood function but how exactly does that work?

Also in WINBUGS, there is a way to obtain the missing values, can we do that in JAGS?

Thank you for your book and effort to make Bayesian understandable.

model {

for (i in 1:N) {

above.lod[i] ~ dinterval( x[i] , llodVec[i] )

x[i] ~ dnorm( mu , tau)

}

mu ~ dnorm(0, 0.01)

tau <- 1/(sigma*sigma)

sigma ~ dunif(0.18, 2.5)

}