powered by
predictive_cdf() evaluates the predictive CDF of the model specified by a DataDistribution dist and Prior at the given stage-one outcome.
predictive_cdf()
DataDistribution
dist
Prior
predictive_cdf(dist, prior, x1, n1, ...)# S4 method for DataDistribution,PointMassPrior,numeric predictive_cdf(dist, prior, x1, n1, ...)# S4 method for DataDistribution,ContinuousPrior,numeric predictive_cdf(dist, prior, x1, n1, k = 33, ...)
# S4 method for DataDistribution,PointMassPrior,numeric predictive_cdf(dist, prior, x1, n1, ...)
# S4 method for DataDistribution,ContinuousPrior,numeric predictive_cdf(dist, prior, x1, n1, k = 33, ...)
a univariate distribution object
distribution
a Prior object
stage-one test statistic
stage-one sample size
further optional arguments
number of pivots for crude integral approximation
numeric, value of the predictive CDF
numeric
# NOT RUN { predictive_cdf(Normal(), PointMassPrior(.0, 1), 0, 20) # .5 tmp <- ContinuousPrior(function(x) dunif(x, .2, .4), c(.2, .4)) predictive_cdf(Normal(), tmp, 2, 20) # }
Run the code above in your browser using DataLab