Learn R Programming

truelies (version 0.2.0)

dist_quantile: Find quantiles given a probability density function

Description

Find quantiles given a probability density function

Usage

dist_quantile(dist, probs, bounds = attr(dist, "limits"))

Arguments

dist

A one argument function

probs

A vector of probabilities

bounds

A length 2 vector of the bounds of the distribution's support

Value

A vector of quantiles

Examples

Run this code
# 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