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

◆ ordered_probit_log() [1/2]

template<bool propto, typename T_y , typename T_loc , typename T_cut >
return_type_t< T_loc, T_cut > stan::math::ordered_probit_log ( const T_y &  y,
const T_loc &  lambda,
const T_cut &  c 
)

Returns the (natural) log probability of the integer/s given the vector of continuous location/s and specified cutpoints in an ordered probit model.

Typically the continuous location will be the dot product of a vector of regression coefficients and a vector of predictors for the outcome.

Template Parameters
proptoTrue if calculating up to a proportion.
T_yy variable type (int or array of integers).
T_locLocation type (double or vector).
T_cutCut-point type (vector or array of vectors).
Parameters
yIntegers
lambdaContinuous location variables.
cPositive increasing cutpoints.
Returns
Log probability of outcome given location and cutpoints.
Exceptions
std::domain_errorIf the outcome is not between 1 and the number of cutpoints plus 2; if the cutpoint vector is empty; if the cutpoint vector contains a non-positive, non-finite value; or if the cutpoint vector is not sorted in ascending order.
std::invalid_argumentIf array y and vector lambda are different lengths.
std::invalid_argumentif array y and array of vectors c are different lengths.
Deprecated:
use ordered_probit_lpmf

Definition at line 41 of file ordered_probit_log.hpp.