Description Usage Arguments Value Author(s)
Run model by unique trial for one set of parameter values
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")
|
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. |
numeric variable storing the negative log likelihood for given parameter set
addm_run_by_trial
Alexander Fengler, alexanderfengler@gmx.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.