new_drift_dm: Create A DDM model - Internal

View source: R/core_dm.R

new_drift_dmR Documentation

Create A DDM model - Internal

Description

This function takes all objects/vectors to create a ddm object

Usage

new_drift_dm(
  flex_prms_obj,
  prms_solve,
  solver,
  comp_funs,
  subclass,
  b_coding = NULL,
  obs_data = NULL
)

Arguments

flex_prms_obj

flex_prms object

prms_solve

vector with sigma, t_max, dt, dx, nt, nx

solver

string (e.g., kfe)

comp_funs

a list of component functions

subclass

string with model info label set for child class

b_coding

optional list with b_coding (e.g., drift_dm_default_b_coding)

obs_data

optional data.frame

Details

This function does not perform any input checks and just assembles all arguments. Pre-wrangling of each argument is done in drift_dm(). Checks are done done with validate_drift_dm(), called in drift_dm().

Value

List with flex_prms_obj, prms_solve, solver, comp_funs. Attributes: class info and b_encoding info. If obs_data is not null, then list of observed rts see obs_data().


dRiftDM documentation built on April 3, 2025, 7:48 p.m.