SequentialSamplingModels.jl

A collection of sequential sampling models based on the Distributions.jl API
Author itsdfish
Popularity
2 Stars
Updated Last
1 Year Ago
Started In
December 2020

SequentialSamplingModels

This package is a collection of sequential sampling models and is based on the Distributions.jl API. The examples below show basic usage. Addition information can be found in the REPL with the help function, e.i., ? LNR.

Lognormal Race Model

using SequentialSamplingModels
dist = LNR=[-2,-3], σ=1.0, ϕ=.3)
data = rand(dist, 10)
like = pdf.(dist, data)
loglike = logpdf.(dist, data)

Linear Ballistic Accumulator

using SequentialSamplingModels
dist = LBA=[3.0,2.0], A = .8, k = .2, τ = .3) 
choice,rt = rand(dist, 10)
like = pdf.(dist, choice, rt)
loglike = logpdf.(dist, choice, rt)

Shifted Wald

using SequentialSamplingModels
dist = Wald=3.0, α=.5, θ=.130)
rt = rand(dist, 10)
like = pdf.(dist, rt)
loglike = logpdf.(dist, rt)

Wald Mixture

using SequentialSamplingModels
dist = WaldMixture=3.0, σ=.2, α=.5, θ=.130)
rt = rand(dist, 10)
like = pdf.(dist, rt)
loglike = logpdf.(dist, rt)

Racing Diffusion Model

using SequentialSamplingModels
dist = DiffusionRace(;ν=[1.0,.5], k=0.5, A=1.0, θ=.2)
data = rand(dist, 10)
like = pdf.(dist, data)
loglike = logpdf.(dist, data)