powered by
Find quantiles given a probability density function
dist_quantile(dist, probs, bounds = attr(dist, "limits"))
A one argument function
A vector of probabilities
A length 2 vector of the bounds of the distribution's support
A vector of quantiles
# NOT RUN { d1 <- update_prior(33, 50, P = 0.5, prior = stats::dunif) dist_quantile(d1, c(0.025, 0.975)) # }
Run the code above in your browser using DataLab