Description Usage Arguments Value References See Also
View source: R/utils_mumhproposaldist.R
This function caculates realizations from the proposal 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 2 | utils_mumhproposaldist(mumh, mumh.alpha, mumh.beta, mumh.alphastar,
mumh.betastar)
|
mumh |
The proposed or old value of |
mumh.alpha |
The old first shape parameter. |
mumh.beta |
The old second shape parameter. |
mumh.alphastar |
The new first shape parameter. |
mumh.betastar |
The new second shape parameter. |
A realization from the (beta) proposal 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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.