For parameters from a Gamma prior distributions in a BUGS model, a logarithmic transformation is used to convert values onto the real number line to.real=TRUE
and the exponential transformation to convert vales back to their original parameter space to.real=FALSE
For parameters from Uniform and Beta prior distributions in a BUGS model, a reverse-logistic transformation is used to convert values onto the real number line to.real=TRUE
and a logistic transformation to convert vales back to their original parameter space to.real=FALSE
.
This function was written with the intention of reducing code when in calculating the normalising constant, in particular when 1) finding the appropiate summary statistics to simulate a candidate normalised distribution from and 2) transforming simulated values to the same scales as the orginal MCMC simulations for later use.