dist_quantile {truelies}R Documentation

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


d1 <- update_prior(33, 50, P = 0.5, prior = stats::dunif)
dist_quantile(d1, c(0.025, 0.975))


[Package truelies version 0.2.0 Index]