Description Usage Arguments Value References See Also

View source: R/utils_mumhtargetdist.R

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`

.

EpiBayes documentation built on May 30, 2017, 4:01 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.