First version of code to use jags to model ivr as a bayesian hierarchical process