lnccbrown / HSSM

Development of HSSM package
Other
71 stars 10 forks source link

Replace negative non-decision time in likelihood computation with a small value #344

Closed digicosmos86 closed 5 months ago

digicosmos86 commented 5 months ago

In the analytical likelihood computation, wherever rt - t <= epsilon, we replace the likelihood value with a very small number. However, this is not done for other types of likelihoods.

We add a ensure_positive_ndt function and apply it at the end of all likelihood computation to ensure this.

In doing so, we assume that all parameter named "t" means non-decision time. There is a default parameter in race_no_bias_angle_4 named ndt. We are now changing it to t to conform with this assumption.