you will need JAGS and the rjags R package to run this analysis open R type: source("detrun") for any question feel free to contact me at derosa@zoho.com, cheers, alberto