MCMC Sampling for Multinomial Population using Normalized Power Prior
MCMC Sampling for Multinomial Population using Normalized Power Prior
Conduct posterior sampling for multinomial population with normalized power prior. For the power parameter δ, a Metropolis-Hastings algorithm with either independence proposal, or a random walk proposal on its logit scale is used. For the model parameter vector θ, Gibbs sampling is used. Assume the prior for model parameter θ comes from a Dirichlet distribution.
Data.Cur: a non-negative integer vector of K elements: c(number of success in group 1, number of success in group 2, ..., number of success in group K) in the current data.
Data.Hist: a non-negative integer vector of K elements: c(number of success in group 1, number of success in group 2, ..., number of success in group K) in the historical data.
CompStat: a list of two elements that represents the "compatibility(sufficient) statistics" for θ. Default is NULL so the fitting will be based on the data. If the CompStat is provided then the inputs in Data.Cur and Data.Hist will be ignored. Note: in multinomial case providing CompStat is equivalent to provide the data summary as in Data.Cur and Data.Cur.
n0 is a non-negative integer vector of K elements for compatible statistics in historical data: c(number of success in group 1, number of success in group 2, ..., number of success in group K).
n1 is a non-negative integer vector of K elements for compatible statistics in current data: c(number of success in group 1, number of success in group 2, ..., number of success in group K).
prior: a list of the hyperparameters in the prior for both p and δ.
theta.dir is a vector of K elements of the hyperparameter α
in the prior distribution Dir(α[1],α[2],...,α[K]) for θ.
delta.alpha a scalar, the hyperparameter α in the prior distribution Beta(α,β) for δ.
delta.beta a scalar, the hyperparameter β in the prior distribution Beta(α,β) for δ.
MCMCmethod: sampling method for δ in MCMC. It can be either 'IND' for independence proposal; or 'RW' for random walk proposal on logit scale.
rw.logit.delta: the stepsize(variance of the normal distribution) for the random walk proposal of logit δ. Only applicable if MCMCmethod = 'RW'.
ind.delta.alpha: specifies the first parameter α when independent proposal Beta(α,β) for δ is used. Only applicable if MCMCmethod = 'IND'
ind.delta.beta: specifies the first parameter β when independent proposal Beta(α,β) for δ is used. Only applicable if MCMCmethod = 'IND'
nsample: specifies the number of posterior samples in the output.
control.mcmc: a list of three elements used in posterior sampling.
delta.ini is the initial value of δ in MCMC sampling.
burnin is the number of burn-ins. The output will only show MCMC samples after bunrin.
thin is the thinning parameter in MCMC sampling.
Returns
A list of class "NPP" with four elements: - p: posterior of the model parameter θ.
delta: posterior of the power parameter δ.
acceptance: the acceptance rate in MCMC sampling for δ using Metropolis-Hastings algorithm.
DIC: the deviance information criteria for model diagnostics.
Details
The outputs include posteriors of the model parameter(s) and power parameter, acceptance rate in sampling δ, and the deviance information criteria.