R/distributions.R
categorical_lpmf.Rd
Categorical log-probability mass function
categorical_lpmf(x, prob, sum = TRUE)
Vector of categorical outcomes.
Vector or matrix of probabilities.
The sum of the log-probability.