MCMC Sampling for Normal Population using Normalized Power Prior
MCMC Sampling for Normal Population using Normalized Power Prior
Conduct posterior sampling for normal population with normalized power prior. The initial prior π(μ∣σ2) is a flat 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 μ and σ2, Gibbs sampling is used.
Data.Cur: a vector of individual level current data.
Data.Hist: a vector of individual level historical data.
CompStat: a list of six elements(scalar) that represents the "compatibility(sufficient) statistics" for model parameters. 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.
n0 is the sample size of historical data.
mean0 is the sample mean of the historical data.
var0 is the sample variance of the historical data.
n1 is the sample size of current data.
mean1 is the sample mean of the current data.
var1 is the sample variance of the current data.
prior: a list of the hyperparameters in the prior for both (μ,σ2) and δ. The form of the prior for model parameter (μ,σ2) is (1/σ2)a. When a=1 it corresponds to the reference prior, and when a=1.5 it corresponds to the Jeffrey's prior.
a is the power a in formula (1/σ2)a, the prior for (μ,σ2) jointly.
delta.alpha is the hyperparameter α in the prior distribution Beta(α,β) for δ.
delta.beta is 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 five elements: - mu: posterior of the model parameter μ.
sigmasq: posterior of the model parameter σ2.
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.
Ibrahim, J.G., Chen, M.-H., Gwon, Y. and Chen, F. (2015). The Power Prior: Theory and Applications. Statistics in Medicine 34:3724-3749.
Duan, Y., Ye, K. and Smith, E.P. (2006). Evaluating Water Quality: Using Power Priors to Incorporate Historical Information. Environmetrics 17:95-106.
Berger, J.O. and Bernardo, J.M. (1992). On the development of reference priors. Bayesian Statistics 4: Proceedings of the Fourth Valencia International Meeting, Bernardo, J.M, Berger, J.O., Dawid, A.P. and Smith, A.F.M. eds., 35-60, Clarendon Press:Oxford.
Jeffreys, H. (1946). An Invariant Form for the Prior Probability in Estimation Problems. Proceedings of the Royal Statistical Society of London, Series A 186:453-461.