Skip to contents

Bernoulli Quantile Function

Usage

quant_bern(x, prob = 0.5)

Arguments

x

A numeric vector of probabilities.

prob

A numeric vector of values between 0 and 1 of the probability of success.

Value

An numeric vector of the corresponding quantiles.

Examples

quant_bern(c(0.3, 0.8), 0.7)
#> [1] 0 1