Stan Math Library
4.9.0
Automatic Differentiation
|
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.
propto | True if calculating up to a proportion. |
T_y | y variable type (int or array of integers). |
T_loc | Location type (double or vector). |
T_cut | Cut-point type (vector or array of vectors). |
y | Integers |
lambda | Continuous location variables. |
c | Positive increasing cutpoints. |
std::domain_error | If 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_argument | If array y and vector lambda are different lengths. |
std::invalid_argument | if array y and array of vectors c are different lengths. |
ordered_probit_lpmf
Definition at line 41 of file ordered_probit_log.hpp.