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

◆ binomial_logit_lpmf() [1/3]

template<bool propto, typename T_n_cl , typename T_N_cl , typename T_prob_cl , require_all_prim_or_rev_kernel_expression_t< T_n_cl, T_N_cl, T_prob_cl > * = nullptr, require_any_nonscalar_prim_or_rev_kernel_expression_t< T_n_cl, T_N_cl, T_prob_cl > * = nullptr>
return_type_t< T_prob_cl > stan::math::binomial_logit_lpmf ( const T_n_cl &  n,
const T_N_cl  N,
const T_prob_cl &  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 34 of file binomial_logit_lpmf.hpp.