dRiftDM0.2.2 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_cafs_obs

Calculate CAFs

calc_cafs

Calculate CAFs

calc_delta_funs

Calculate delta function(s)

calc_ic

Calculate Information Criteria (AIC and BIC)

calc_log_like

Calculate the Log-Likelihood

calc_pdfs

Calculate the PDFs

calc_quantiles_obs

Calculate Quantiles

calc_quantiles

Calculate Quantiles

calc_stats_pred_obs

Calculate Statistics for Model Prediction and/or Observed Data

calc_stats

Calculate Statistics

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_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_raw_data

Check the Observed Data

check_unique_special_boundary

Check for Unique Special Boundary Values

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

count_unique_prms_one_internal_entry

Count the number of digits > 0

create_matrix_l_u

Create a matrix for lower and upper

ddm_opts

Optional Arguments for the Component Functions

defaults

Default Values for the dRiftDM Package

dmc_dm

Create the Diffusion Model for Conflict Tasks

draw_from_pdf

Draw Samples Using Inverse Transform Sampling

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

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

get_default_functions

Get default/fall back component functions

get_example_fits_ids

Auxiliary Function to create a fits_ids object

get_lower_upper_smart

Turn default/special upper and lower arguments to vectors

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

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...

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.cafs

Plot Conditional Accuracy Functions (CAFs)

plot.delta_funs

Plot Delta Functions

plot.drift_dm

Plot Components of a Drift Diffusion Model

plot.quantiles

Plot 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

set_default_colors

Set Default Colors

set_one_solver_setting

Set one specific aspect of the solver settings

set_plot_limits

Set Plot Limits

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

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_ids_dm

Summary and Printing for fits_ids_dm Objects

summary.flex_prms

Summarizing Flex Parameters

summary.stats_dm

Summary for stats_dm Objects

summary.traces_dm

Summary for traces_dm and traces_dm_list Objects

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

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-03-04