View source: R/core_estimate_depr.R
| estimate_model_ids | R Documentation |
This function was deprecated in
dRiftDM version 0.3.0. Please use the more general
estimate_dm()
instead. NOTE: dRiftDM now supports multiple ways of estimating a model.
To ensure a more consistent function interface, individual fits are no longer
saved to disk when fitting multiple participants. Instead,
estimate_dm() directly returns an object of type fits_ids_dm,
which users can save manually if desired.
Old documentation:
Provides a wrapper around estimate_model to fit multiple
individuals. Each individual will be stored in a folder. This folder will
also contain a file drift_dm_fit_info.rds, containing the main arguments
of the function call. One call to this function is considered a
"fit procedure". Fit procedures can be loaded via load_fits_ids.
estimate_model_ids(
drift_dm_obj,
obs_data_ids,
lower,
upper,
fit_procedure_name,
fit_path,
fit_dir = "drift_dm_fits",
folder_name = fit_procedure_name,
seed = NULL,
force_refit = FALSE,
progress = 2,
start_vals = NULL,
...
)
drift_dm_obj |
an object inheriting from drift_dm that will
be estimated for each individual in |
obs_data_ids |
data.frame, see
obs_data. An additional column |
lower, upper |
numeric vectors or lists, providing the parameter space, see estimate_model. |
fit_procedure_name |
character, providing a name of the fitting
procedure. This name will be stored in |
fit_path |
character, a path, pointing to the location where all fits
shall be stored (i.e., |
fit_dir |
character, a directory where (multiple) fitting procedures
can be stored. If the directory does not exist yet, it will be created
via |
folder_name |
character, a folder name for storing all the individual
model fits. This variable should just state the name, and should not be
a path. Per default |
seed |
numeric, a seed to make the fitting procedure reproducable
(only relevant for differential evolution, see estimate_model).
Default is |
force_refit |
logical, if |
progress |
numerical, indicating if and how progress shall be displayed. If 0, no progress is shown. If 1, the currently fitted individual is printed out. If 2, a progressbar is shown. Default is 2. |
start_vals |
optional data.frame, providing values to be set
before calling estimate_model. Can be used to control the
starting values for each individual when calling Nelder-Mead. Note that this
will only have an effect if DEoptim is not used (i.e., when setting
|
... |
additional arguments passed down to estimate_model. |
Examples and more information can also be found in
vignette("dRiftDM", "dRiftDM").
When developing the fitting routine we had three levels of files/folders in mind:
In a directory/folder named fit_dir multiple fitting routines can be
stored (default is "drift_dm_fits")
Each fitting routine has its own folder with a name as given by
folder_name (e.g., "ulrich_flanker", "ulrich_simon", ...)
Within each folder, a file called
drift_dm_fit_info.rds contains the main information about the function
call. That is, the time when last modifying/calling a fitting routine, the
lower and upper parameter boundaries, the drift_dm_object that was
fitted to each individual, the original data set obs_data_ids, and
the identifier fit_procedure_name. In the same folder each individual
has its own <individual>.rds file containing the modified
drift_dm_object.
nothing (NULL; invisibly)
load_fits_ids
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.