adapt function

Adaptive phase for JAGS models