Skip to contents

Bernoulli Cumulative Distribution Function

Usage

prob_bern(x, prob = 0.5)

Arguments

x

A numeric vector of quantiles.

prob

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

Value

An numeric vector of the corresponding probabilities.

Examples

prob_bern(c(TRUE, FALSE), 0.7)
#> [1] 1.0 0.3