template<bool propto = false, typename T_y , typename T_a , typename T_t0 , typename T_w , typename T_v , typename T_sv , typename T_sw , typename T_st0 >
| auto stan::math::wiener_lccdf_defective |
( |
const T_y & |
y, |
|
|
const T_a & |
a, |
|
|
const T_t0 & |
t0, |
|
|
const T_w & |
w, |
|
|
const T_v & |
v, |
|
|
const T_sv & |
sv, |
|
|
const T_sw & |
sw, |
|
|
const T_st0 & |
st0, |
|
|
const double & |
precision_derivatives = 1e-8 |
|
) |
| |
|
inline |
Returns the log CCDF of the Wiener distribution for a (Wiener) drift diffusion model with up to 7 parameters.
If containers are supplied, returns the log sum of the probabilities. See 'wiener_full_lpdf' for more comprehensive documentation As the CDF goes to the probability to hit the upper bound (instead of 1, as it is usually the case) when the reaction time goes to infinity, the CCDF is defined as ccdf = probability_to_hit_the_upper_bound - cdf.
- Template Parameters
-
| T_y | type of reaction time |
| T_a | type of boundary separation |
| T_t0 | type of non-decision time |
| T_w | type of relative starting point |
| T_v | type of drift rate |
| T_sv | type of inter-trial variability of drift rate |
| T_sw | type of inter-trial variability of relative starting point |
| T_st0 | type of inter-trial variability of non-decision time |
- Parameters
-
| y | The reaction time in seconds |
| a | The boundary separation |
| t0 | The non-decision time |
| w | The relative starting point |
| v | The drift rate |
| sv | The inter-trial variability of the drift rate |
| sw | The inter-trial variability of the relative starting point |
| st0 | The inter-trial variability of the non-decision time |
| precision_derivatives | Level of precision in estimation of partial derivatives |
- Returns
- log probability or log sum of probabilities for upper boundary responses
- Exceptions
-
| std::domain_error | if non-decision time t0 is greater than reaction time y. |
| std::domain_error | if 1-sw/2 is smaller than or equal to w. |
| std::domain_error | if sw/2 is larger than or equal to w. |
Definition at line 87 of file wiener_full_lccdf_defective.hpp.