### Set of utility functions to perform Bayesian estimations and health economic analysis
############################################################
## Produce a traceplot to assess convergence of a MCMC run
## node is a string with the name of the node to be plotted
## model is the name of the object containing the MCMC simulations
## Copyright Gianluca Baio 2012
mytraceplot 2) {
cols =.5,max(which(sim>=upp)),min(which(sim>=upp)))
M =.5,min(which(sim<=upp)),max(which(sim<=upp)))
b =.5,max(which(sim>=upp)),min(which(sim>=upp)))
M =.5,min(which(sim<=upp)),max(which(sim<=upp)))
a =.5))
m