powered by
Return posterior distribution given observing stage-one outcome.
posterior(dist, prior, x1, n1, ...)# S4 method for DataDistribution,PointMassPrior,numeric posterior(dist, prior, x1, n1, ...)# S4 method for DataDistribution,ContinuousPrior,numeric posterior(dist, prior, x1, n1, tighten_support = FALSE, check_normalization = FALSE, ...)
# S4 method for DataDistribution,PointMassPrior,numeric posterior(dist, prior, x1, n1, ...)
# S4 method for DataDistribution,ContinuousPrior,numeric posterior(dist, prior, x1, n1, tighten_support = FALSE, check_normalization = FALSE, ...)
a univariate distribution object
distribution
a Prior object
Prior
stage-one test statistic
stage-one sample size
further optional arguments
logical indicating if the support should be tightened
logical indicating if it should be checked that pdf defines a density.
pdf
Object of class Prior
# NOT RUN { posterior(Normal(), PointMassPrior(0, 1), 2, 20) tmp <- ContinuousPrior(function(x) dunif(x, .2, .4), c(.2, .4)) posterior(Normal(), tmp, 2, 20) # }
Run the code above in your browser using DataLab