utils_mumhproposaldist: Proposal Distribution for MH Step for mu
Description
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.
Usage
utils_mumhproposaldist(mumh, mumh.alpha, mumh.beta, mumh.alphastar, mumh.betastar)
Arguments
mumh
The proposed or old value of mu
.
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.
Value
A realization from the (beta) proposal distribution.
References
Norets, A. and Tang, X. MCMC estimation of a finite beta mixture. Technical
report, Princeton University, 2010.