Description Usage Arguments Value Author(s)
Run grid search over supplied parameter space
1 2 3 4 5 6 7 8 9 | addm_fit_grid(data = list(choice.dat = NULL, eye.dat = NULL, conditions.dat =
NULL, attributes = NULL), drifts = seq(0.001, 0.0025, 5e-04),
thetas = seq(0, 1, 0.25), gammas = 1, sds = seq(0.05, 0.09, 0.01),
non.decision.times = 0, scalar_item_not_seen_drift = 1,
scalar_item_not_seen_noise = 1, boundaryfun = 1,
boundary.parameters = 0, nr.reps = 1000, timestep = 10,
model.type = "standard", fixation.model = "fixedpath",
fit.type = "condition", allow.fine.grid = 0, coarse.to.fine.ratio = 4,
log.file = "defaultlog.txt", parallel = 1, state.step = 0.1)
|
data |
list of three data.tables of each: choice data, eyetracking data, conditions data (as created by addm_dataprep) |
drifts |
vector of all driftrate values to be tested. |
thetas |
vector of all theta values to be tested [0,1]. |
gammas |
vector of all gamma values to be tested [0,1] (matters only when supplying data with multiple attributes by item) |
sds |
vector of all standard deviation values to be tested. |
non.decision.times |
vector of all non decision times to be tested (in ms). |
boundaryfun |
function that is supplied by user for the decision boundaries (has to have at least two inputs: maxrt, timestep) |
boundary.parameters |
matrix or vector that provides a parameter-space for all parameter sets that shall be tested on the boundary function |
nr.reps |
integer that tells the function how many simulation runs to use. |
timestep |
integer 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 normal model fits. 'memnoise' to allow for memory effects (see vignette for more for detailed explanation of what this is about). |
fixation.model |
string that indicates which fixation model will be utilized for simulations. 'random' for random fixations (example). 'fixedpath' for following a predetermined fixation path with fixed durations (example). 'user' to provide your own fixation model, defined in a function "user_fixation_model" in the global environment. |
fit.type |
string indicating either 'condition' for fits by unique trial conditions, 'trial' for fits by trial, or 'dyn' where you can use a dynamic programming algorithm for fitting the two items case, bypassing simulations for the fitting procedure |
allow.fine.grid |
variable that indicates whether we allow (1) a fine grid to be created and searched around the coarse grid minimum or not (0). |
coarse.to.fine.ratio |
integer defining the ratio between parameter steps in the coarse versus the fine grid. |
log.file |
path to a file for storing fit-logs |
parallel |
boolean varible that indicates whether to initialize local cluster on start (1) or not (0). |
state.step |
parameter only relevant when using fit.type = 'dyn', for which case it given the precision of the vertical grid utilized in the dynammic programming algorithm |
data.table with log likelihoods by parameter combination
addm_fit_grid
Alexander Fengler, alexanderfengler@gmx.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.