Description Usage Arguments Author(s) References See Also
Calculates the posterior distribution for data data given a prior priormix, where the prior is a empirical Bayes power prior (Gravestock&Held, 2017). Does the same as postmix.powerprior. Maybe deprecated in the future.
1 2 3 4 | ## S3 method for class 'betaMix'
powerprior(prior, n, r, p.prior.a, p.prior.b, ...)
## S3 method for class 'normMix'
powerprior(prior, n, m, sigma, ...)
|
prior |
An RBesT mixture object with a single mixture component |
n |
sample size |
r |
Number of successes |
m |
Sample mean |
sigma |
Sample standard deviation |
p.prior.a |
in case of binary outcome, shape1 parameter of initial beta prior for successes. |
p.prior.b |
in case of binary outcome, shape2 parameter of initial beta prior for successes. |
... |
Manuel Wiesenfarth
Gravestock, I. and Held, L. (2017). Adaptive power priors with empirical bayes for clinical trials. Pharmaceutical statistics, 16(5):349-360.
package StudyPrior, postmix.powerprior
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.