Stan Math Library
5.0.0
Automatic Differentiation
|
return_type_t< T_y_cl, T_x_cl, T_alpha_cl, T_beta_cl, T_sigma_cl > stan::math::normal_id_glm_lpdf | ( | const T_y_cl & | y, |
const T_x_cl & | x, | ||
const T_alpha_cl & | alpha, | ||
const T_beta_cl & | beta, | ||
const T_sigma_cl & | sigma | ||
) |
Returns the log PDF of the Generalized Linear Model (GLM) with Normal distribution and id link function.
If containers are supplied, returns the log sum of the probabilities. This is an overload of the GLM in prim/prob/normal_id_glm_lpdf.hpp that is implemented in OpenCL.
T_y_cl | type of independent variable; this can be a matrix_cl vector of intercepts or a single value (wich will be broadcast - used for all instances); |
T_x_cl | type of the design matrix |
T_alpha_cl | type of the intercept(s); this can be a (optionally var_value containing) matrix_cl column vector (of the same length as y) of intercepts or a scalar (for models with constant intercept) |
T_beta_cl | type of the weight vector; (optionally var_value containing) matrix_cl column vector |
T_sigma_cl | type of the (positive) scale(s); (optionally var_value containing) matrix_cl column vector (of the same length as y, for heteroskedasticity) or a scalar. |
y | scalar or vector parameter on OpenCL device. If it is a scalar it will be broadcast - used for all instances. |
x | design matrix on OpenCL device. This overload does not support broadcasting of a row vector x! |
alpha | intercept (in log odds) |
beta | weight vector |
sigma | (Sequence of) scale parameters for the normal distribution. |
std::domain_error | if x, beta or alpha is infinite. |
std::domain_error | if the scale is not positive. |
std::invalid_argument | if container sizes mismatch. |
Definition at line 63 of file normal_id_glm_lpdf.hpp.