Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Multinomial Population
Calculate Posterior Mode of the Power Parameter in Normalized Power Prior with Grid Search, Multinomial Population
The function returns the posterior mode of the power parameter δ in multinomial population. It calculates the log of the posterior density (up to a normalizing constant), and conduct a grid search to find the approximate mode.
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).
npoints: is a non-negative integer scalar indicating number of points on a regular spaced grid between [0, 1], where we calculate the log of the posterior and search for the mode.
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 δ.