View source: R/core_estimate.R
| estimate_classical_wrapper | R Documentation |
This function wraps estimate_classical() to handle fitting
multiple individuals in a consistent way. It prepares the data, distributes
the estimation across individuals, and manages parallelization strategies and
progress reporting. Unlike the deprecated estimate_model_ids(), this
function no longer saves results to disk — instead, it directly returns an
object of class fits_ids_dm.
estimate_classical_wrapper(
drift_dm_obj,
obs_data_ids,
parallelization_strategy = NULL,
progress = NULL,
start_vals = NULL,
optimizer,
n_cores = NULL,
seed = NULL,
...
)
drift_dm_obj |
a drift_dm object that will be estimated for
each individual in |
obs_data_ids |
a data.frame of observed data including an |
parallelization_strategy |
an integer, either |
progress |
an integer, controlling progress output. |
start_vals |
an optional |
seed |
an optional seed to make the results reproducible |
... |
further arguments passed to |
Convergence issues are checked automatically. If one or more individuals fail to converge, a warning is issued with the corresponding IDs and messages returned by the optimizer.
an object of class fits_ids_dm, which is a list with two
components:
drift_dm_fit_info — a list containing the model object,
observed data, optimizer information, and convergence messages
all_fits — a list of individual estimation results
estimate_classical(), estimate_dm()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.