Skip to content

Adding 7-Parameter Drift Diffusion Model (DDM) CDF and CCDF with partial derivatives to Stan Math #2966

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

Open
Franzi2114 opened this issue Oct 23, 2023 · 1 comment

Comments

@Franzi2114
Copy link
Collaborator

Description

As the PDF function for the 7-parameter diffusion model with its partial derivatives was implemented in issue #2682 and discussed in PR #2822, I now also want to add the CDF and CCDF functions for the 7-parameter diffusion model with their partial derivatives. With these new functions, it is possible to model truncated or censored data.

Example

An example call would be wiener_full_lcdf(y, a, t0, w, v, sv, sw, st0);,
with
double y = 2;
double a = 2;
double t0 = .2;
double w = .6;
double v = -.9;
double sv = .2;
double sw = .2;
double st0 = .25;
The expected output for these parameters would be -1.55387294861195.

Current Version:

v4.7.0

@spinkney
Copy link
Collaborator

Looking forward to it! I am really glad you stuck with the pdf PR and it's nearly done.

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

No branches or pull requests

2 participants