addm_run_by_trial: Run model by unique trial

Description Usage Arguments Value Author(s)

Description

Run model by unique trial for one set of parameter values

Usage

1
2
3
4
5
addm_run_by_trial(choice.dat = data.table(v1 = 0, v2 = 0, id = 0),
  eye.dat = data.table(fixloc = 0, fixdur = 0, fixnr = 1, id = 0),
  model.parameters = c(0, 0.002, 0.07, 1), nr.attributes = 1,
  boundaryfun = 1, nr.reps = 1000, timestep = 10,
  model.type = "standard")

Arguments

choice.dat

data.table storing the item valuations (v1,v2...), reaction times in ms (rt), decisions (decision) and unique trial ids (id).

eye.dat

data.table storing eyetracking data by trial. Fixation location (fixloc), Fixation number (fixnr), Fixation duration (fixdur) and a unique trial ids (id).

model.parameters

vector with the four core addm parameters in order (non.decision.time, drift, sd, theta, gamma, boundary-parameters).

nr.attributes

integer providing the amount of attributes we consider per item

nr.reps

integer that tells the function how many simulation runs to use.

timestep

integer number that provides the timestep-size that is used in the simulations (in ms).

model.type

string that indicates which version of the model to run. 'standard' for traditional (a)ddm, or 'memnoise' when memory effects shall be allowed.

Value

numeric variable storing the negative log likelihood for given parameter set addm_run_by_trial

Author(s)

Alexander Fengler, alexanderfengler@gmx.de


AlexanderFengler/addmtoolbox documentation built on May 5, 2019, 4:53 a.m.