This function caculates realizations from the target distribution for `mu`

in
the Metropolis-Hastings (MH) step in the hybrid Gibbs sampler used in the
`EpiBayes_ns`

and `EpiBayes_s`

functions. Recall,
in the context of disease freedom, `mu`

was the average disease prevalence
in a given diseased cluster of subjects.

1 | ```
utils_mumhtargetdist(mumh, psi, pi, z.pi, muparm)
``` |

`mumh` |
The proposed or old value of |

`psi` |
The current MCMC iteration's value for |

`pi` |
The current MCMC iteration's value for |

`z.pi` |
The current MCMC iteration's value for |

`muparm` |
The old first and second shape parameters. |

A realization from the target distribution.

Norets, A. and Tang, X. *MCMC estimation of a finite beta mixture*. Technical
report, Princeton University, 2010.

Used in the functions `EpiBayes_ns`

and `EpiBayes_s`

.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.