model clear
data clear
model in "/Users/zhenkewu/Dropbox/ZW/professional/teaching/graphical models/notes/lecture14/code/JAGS/model.bug"
cd "/Users/zhenkewu/Dropbox/ZW/professional/teaching/graphical models/notes/lecture14/code/JAGS"
data in "jagsdata.txt"
compile, nchains(1)
inits in "jagsinits1.txt", chain(1)
initialize
update 5000, by(200)
monitor beta, thin(5)
monitor mu, thin(5)
monitor taubeta, thin(5)
monitor sigma, thin(5)
update 5000, by(200)
coda *
