Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ binomial_logit_lpmf() [2/3]

template<bool propto, typename T_n , typename T_N , typename T_prob , require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T_n, T_N, T_prob > * = nullptr>
return_type_t< T_prob > stan::math::binomial_logit_lpmf ( const T_n &  n,
const T_N &  N,
const T_prob &  alpha 
)

Binomial log PMF in logit parametrization.

Binomial(n|n, inv_logit(alpha))

If given vectors of matching lengths, returns the log sum of probabilities.

Parameters
nsuccesses variable
Npopulation size parameter
alphalogit transformed probability parameter
Returns
log probability or log sum of probabilities
Exceptions
std::domain_errorif N is negative or probability parameter is invalid
std::invalid_argumentif vector sizes do not match

Definition at line 37 of file binomial_logit_lpmf.hpp.