Stan Math Library
4.9.0
Automatic Differentiation
|
return_type_t< T_loc, T_cut > stan::math::ordered_probit_lpmf | ( | const T_y & | y, |
const T_loc & | lambda, | ||
const T_cut & | c | ||
) |
Returns the (natural) log probability of the specified array of integers given the vector of continuous locations and array of 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 | Type of y variable - int or std::vector<int> . |
T_loc | Location type - Eigen vector or scalar. |
T_cut | Cut-point type - Eigen vector or a std vector of Eigen vectors. |
y | integer or Array of integers |
lambda | Location. |
c | Positive increasing vectors of cutpoints. |
std::domain_error | If the outcome is not between 1 and the number of cutpoints plus 2; if the cutpoint vector contains a non-positive or non-finite value; or if the cutpoint vector is not sorted in ascending order. |
std::invalid_argument | If y and lambda are different lengths; if the cutpoint vector is empty; if y and the array of cutpoints are of different lengths. |
Definition at line 48 of file ordered_probit_lpmf.hpp.