Skip to contents

Bernoulli log-probability mass function

Usage

bernoulli_lpmf(x, prob, sum = TRUE)

Arguments

x

Vector of binary outcomes (0 or 1).

prob

Probability of success.

Value

The sum of the log-probability.