Description Usage Arguments Value Examples
Return posterior distribution given observing stage-one outcome.
1 2 3 4 5 6 7 |
dist |
a univariate |
prior |
a |
x1 |
stage-one test statistic |
n1 |
stage-one sample size |
... |
further optional arguments |
Object of class Prior
1 2 3 4 | posterior(Normal(), PointMassPrior(0, 1), 2, 20)
tmp <- ContinuousPrior(function(x) dunif(x, .2, .4), c(.2, .4))
posterior(Normal(), tmp, 2, 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.