# Target Distribution for MH Step for mu

### Description

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.

### Usage

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

### Arguments

`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. |

### Value

A realization from the target distribution.

### References

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

### See Also

Used in the functions `EpiBayes_ns`

and `EpiBayes_s`

.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.