Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
The log of the log transformed negative binomial density for the specified scalars given the specified mean(s) and deviation(s).
n, eta, or phi can each be either a scalar or a vector matrix_cl. Any vector inputs must be the same length.
The result log probability is defined to be the sum of the log probabilities for each observation/mean/deviation triple.
T_n_cl | type of scalar |
T_log_location_cl | type of location parameter |
T_precision_cl | type of precision parameter |
n | (Sequence of) scalar(s). |
eta | (Sequence of) location parameter(s) |
phi | (Sequence of) precision parameters |
std::domain_error | if the scale is not positive. |
Definition at line 43 of file neg_binomial_2_log_lpmf.hpp.