dRiftDM0.3.1 package

Estimating (Time-Dependent) Drift Diffusion Models

add_residual

Convolute the First Passage Times with the Non-Decision Time Distribut...

aggregate_stats

Aggregate Statistics Across ID

b_coding

The Coding of the Boundaries

b_constant

Constant Boundary

b_hyperbol

Collapsing Boundary - Hyperbolic Ratio Function

b_weibull

Collapsing Boundary - Weibull Function

calc_basic_stats_obs

Calculate Basic Mean, Standard Deviations, and Percentages for Observe...

calc_basic_stats

Calculate Basic Statistics for Response Times or Probability Densities

calc_cafs_obs

Calculate CAFs

calc_cafs

Calculate CAFs

calc_delta_funs

Calculate delta function(s)

calc_dens_obs

Calculate and Combine Density Estimates for Observed and Predicted Dat...

calc_fit_stats

Calculate Fit Statistics

calc_log_like

Calculate the Log-Likelihood

calc_pdfs

Calculate the PDFs

calc_quantiles_obs

Calculate Quantiles

calc_quantiles

Calculate Quantiles

calc_rmse_eval

RMSE Calculation and Helpers

calc_stats_pred_obs

Calculate Statistics for Model Prediction and/or Observed Data

calc_stats

Calculate Statistics

call_log_posterior_m

Metropolis Acceptance Step for Vectorized MCMC Sampling

check_b_coding

Check a B_Coding

check_digit_larger_0

Checks if a variable/vector of length 1 is a number > 0 or 0/expressio...

check_discretization

Check time/space discretization via reference comparison

check_if_named_numeric_vector

Check if Object is a Named Numeric Vector

check_internal_list

checks if all entries of internal_list are an expression or integer. T...

check_reduce_raw_data

Check and Reduce the Observed Data

coef.drift_dm

Access Coefficients of a Model

comp_funs

The Component Functions of A Model

comp_vals

Evaluate all Component Functions

component_shelf

Diffusion Model Components

conds

The Conditions of an Object

copy_class_attributes

Copy Class Attributes from One Object to Another

cost_function

Access/Replace the Cost Function Label and Access the Cost Function Va...

count_unique_prms_one_internal_entry

Count the number of digits > 0

create_matrix_smart

Create a matrix for lower and upper

create_temperatures

Create "Temperatures" for TIDE

crossover

Perform Crossover Between Chains

d_default_prior_hyper

Default Prior for Group-Level (Hyper) Parameters

ddm_opts

Optional Arguments for the Component Functions

defaults

Default Values for the dRiftDM Package

dmc_dm

Create the Diffusion Model for Conflict Tasks

do_resampling

Temporarily suppress new stats generation during resampling

draw_from_pdf

Draw Samples Using Inverse Transform Sampling

drift_dm_cost_functions

Available Cost Functions for Model Estimation

drift_dm_pre_built_models

Pre-built Drift Diffusion Models

drift_dm_stats_types

Available types of statistics

drift_dm

Create a drift_dm object

dRiftDM-package

dRiftDM: Estimating (Time-Dependent) Drift Diffusion Models

drop_levels_ID_column

Maybe droplevels of ID column

dt_b_constant

Derivative of a Constant Boundary

dtnorm

Truncated Normal Density Function

estimate_bayes_h

(Hierarchical) Bayesian Estimation with Differential Evolution

estimate_bayesian

(Hierarchical) Bayesian Estimation

estimate_classical_wrapper

Internal wrapper for classical estimation of individuals

estimate_classical

Estimate Parameters of a drift_dm Model via Classical Optimization

estimate_dm

Fit a DDM to Observed Data

estimate_model_ids

Fit Multiple Individuals and Save Results

estimate_model

Estimate the Parameters of a drift_dm Model

flex_cust_prm

Specify custom parameters

flex_fix_prms

Exclude parameters from being modified (i.e., fix it; internal docu)

flex_prms

Flex_Prms

flex_restrain_prms

Set parameters as equal across conditions

flex_special_dependency

Set special dependencies (internal docu)

flex_specific_value

Set a specific value to the parameter matrix (internal docu)

flex_vary_prms

Allow parameters to vary

full_crossover

Perform a Full Crossover Step Using Differential Evolution

get_avg_trials

Compute average trials per condition across individuals

get_default_functions

Get default/fall back component functions

get_default_prior_settings

Generate Prior Functions for Model Parameters

get_example_fits

Auxiliary Function to load a fits_ids_dm, fits_agg_dm, or `mcmc_dm...

get_ez_diffusion

Compute EZ Diffusion parameters

get_lower_upper

Get Default Parameter Ranges for a Model

get_parameters_smart

Turn default/special parameter specifications to vectors

get_starting_values

TITLE

get_subset_chains

Extract a Subset of MCMC Chains

hist.coefs_dm

Plot Parameter Distribution(s)

internal_aggregate

Aggregate Data Frame Columns by Group

internal_list_to_matrix

Turn an internal list to a matrix

is_empty

Check if an object of length <= 1 is either empty or contains entry wi...

is_numeric

Check if an object is a valid numeric vector

linearize_internal_list

Relabel the internal list

load_fits_ids

Load Estimates of a Fit Procedure

log_posterior_hyper

Conditional Log-Posterior Distributions for MCMC Sampling

logLik.drift_dm

Extract Log-Likelihood for a drift_dm Object

logLik.fits_ids_dm

Extract Model Statistics for fits_ids_dm Object

max_number_one_internal_entry

Get the maximum number from an internal entry or flex_prms_obj (intern...

mcmc_dm_to_coda_mcmc

Convert MCMC Chain Array to a coda::mcmc.list Object

migration_crossover

Perform a Migration Step Between Chains

modify_flex_prms

Set Instructions to a flex_prms object

mu_constant

Constant Drift Rate

mu_dmc

Drift Rate for DMC

mu_int_constant

Integral of Constant Drift Rate

mu_int_dmc

Integral of DMC's Drift Rate

mu_ssp

Drift Rate for SSP

new_drift_dm

Create a DDM model --- internal

new_stats_dm

Create a New stats_dm Object

nobs.drift_dm

Get the Number of Observations for a drift_dm Object

nt_constant

Constant Non-Decision time

nt_truncated_normal

Truncated Normally-Distributed Non-Decision Time

nt_uniform

Uniform Non-Decision Time

obs_data_to_rt_lists

Disassemble an Observed Data set

obs_data

The Observed Data

pdfs

Access the Probability Density Functions of a Model

plot_mcmc_trace

Plot MCMC Chains for Drift Diffusion Model Parameters

plot.cafs

Plot Conditional Accuracy Functions (CAFs)

plot.delta_funs

Plot Delta Functions

plot.densities

Plot Distributions of Predicted and Observed Data

plot.drift_dm

Plot Components of a Drift Diffusion Model

plot.mcmc_dm

Plot MCMC Results and Diagnostics for mcmc_dm Objects

plot.quantiles

Plot Response Time Quantiles

plot.stats_dm_list

Plot Multiple Statistics

plot.traces_dm_list

Plot Traces of a Drift Diffusion Model

print.cafs

Print Functions for Stats Objects

prm_cond_combo_2_labels

Generate Parameter-Condition Labels

prms_cond_combo

Unique Conditions-Parameter Combinations

prms_conds_to_modify

Extract the conditions and parameters from an instruction string

prms_solve

The Parameters for Deriving Model Predictions

prms_to_str

Format Parameters as String

ratcliff_dm

Create a Basic Diffusion Model

re_evaluate_model

Re-evaluate the model

remove_estimate_info

Remove flags added when calling estimate_classical

resample_helpers

Internal Helpers for Resampling of Summary Statistics

set_agg_data

Set aggregated data to a model object

set_default_arguments

Set default graphical parameters for plotting in dRiftDM

set_default_colors

Set Default Colors

set_one_solver_setting

Set one specific aspect of the solver settings

simulate_data

Simulate Synthetic Responses

simulate_one_data_set

Simulate one data set

simulate_traces_one_cond

Simulate Traces for One Conditions

simulate_traces

Simulate Trajectories/Traces of a Model

simulate_values

Simulate Values

solver

The Solver for Deriving Model Predictions

sort_one_internal_entry

Sorts the numbers in ascending order

ssp_dm

Create the Shrinking Spotlight Model

stats_from_pdfs_agg_info

Get Quantiles/CAFs from PDFs and stats_agg_info

stats_resample_dm

Resample Observed and Predicted Statistics for Interval Estimation

stats.options

Helper to get, set, or reset package-global options for statistics

summarize_drift_dm_info

Reads Info file

summary.coefs_dm

Summary for coefs_dm Objects

summary.drift_dm

Summary for drift_dm objects

summary.fits_agg_dm

Summary and Printing for fits_agg_dm Objects

summary.fits_ids_dm

Summary and Printing for fits_ids_dm Objects

summary.flex_prms

Summarizing Flex Parameters

summary.mcmc_dm

Summary for mcmc_dm Objects

summary.stats_dm

Summary for stats_dm Objects

summary.traces_dm

Summary for traces_dm and traces_dm_list Objects

trapz

Numerical integration using the trapezoidal rule

try_cast_integer

Convert Character Digits to Numeric Digits

unpack_obj

Unpack/Destroy dRiftDM Objects

unpack_traces

Unpack/Destroy Traces Objects

update_special_values

Update all prms

update_stats_agg

Update aggregated statistics in a drift_dm object

validate_drift_dm

Validate a DDM object

validate_fits_ids

Validate a an Object of Type fits_ids_dm

validate_flex_prms

checks if a flex_prms_object is parameterized in a reasonable way

validate_stats_dm

Validate a stats_dm Object

x_beta

Beta-Shaped Starting Point Distribution Centered Around Zero

x_dirac_0

Constant Starting Point at Zero

x_uniform

Uniform Starting Point Distribution Centered Around Zero

x2prms_vals

Update the parameter matrix for vector inputs (internal docu)

Fit and explore Drift Diffusion Models (DDMs), a common tool in psychology for describing decision processes in simple tasks. It can handle both time-independent and time-dependent DDMs. You either choose prebuilt models or create your own, and the package takes care of model predictions and parameter estimation. Model predictions are derived via the numerical solutions provided by Richter, Ulrich, and Janczyk (2023, <doi:10.1016/j.jmp.2023.102756>).

  • Maintainer: Valentin Koob
  • License: MIT + file LICENSE
  • Last published: 2025-12-01