Negative binomial log-likelihood
Usage
neg_binomial_log_likelihood(y, y_hat)
Arguments
- y
A numeric vector with binary entries, the true outcomes.
- y_hat
A numeric vector with continuous entries, the predicted outcomes.
Value
Numeric scalar, the negative binomial log-likelihood.