Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merged initial DDM distribution #20

Merged
merged 2 commits into from
Jun 18, 2023
Merged

Conversation

kiante-fernandez
Copy link
Contributor

I have merged the DDM implementation from the https://github.com/t-alfers/WienerDiffusionModel.jl repo (thanks @t-alfers). I chose to use the response time implementation that utilizes the negative-RT solution. The negative RTs indicate a lower-bound response. This approach is more straightforward and, importantly, significantly reduces the probability of coding the model incorrectly. It follows the original JAGS implementation (see Vandekerckhove 2014) where the lower-bound hits as negative reaction times were used as a cost-effective way of encoding what essentially is a bivariate distribution (strictly positive RT and binary response). Refer to this old thread for discussion. It may also help resolve some issues we were experiencing with Turing.jl compatibility.

@codecov-commenter
Copy link

codecov-commenter commented Jun 18, 2023

Codecov Report

Patch coverage has no change and project coverage change: -21.20 ⚠️

Comparison is base (cb80132) 75.70% compared to head (238160c) 54.51%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #20       +/-   ##
===========================================
- Coverage   75.70%   54.51%   -21.20%     
===========================================
  Files          10       10               
  Lines         391      543      +152     
===========================================
  Hits          296      296               
- Misses         95      247      +152     
Impacted Files Coverage Δ
src/DDM.jl 0.00% <0.00%> (ø)
src/SequentialSamplingModels.jl 100.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@t-alfers
Copy link

@kiante-fernandez Thank you for incorporating the code into SequentialSamplingModels.jl. I'm very much in favor of the negative-RT parameterisation, but could you elaborate on how this helped in resolving issues with Turing.jl compatibility?

@itsdfish
Copy link
Owner

Thanks Kiante for the PR, and thanks t-alfers for allowing us to integrate your code. I was struggling to view the PR locally, but I am going to merge anyways. For future reference, do you know of a solution?

I will add some tests and release a new version sometime today.

@itsdfish itsdfish merged commit 8dca685 into itsdfish:master Jun 18, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants