utils_mumhproposaldist: Proposal Distribution for MH Step for 'mu'

Description Usage Arguments Value References See Also

View source: R/utils_mumhproposaldist.R

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

1
2
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.

See Also

Used in the functions EpiBayes_ns and EpiBayes_s.


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