Helper function that aggregates a data set across all participants
and attaches the resulting group-level summary statistics to a
drift_dm_obj. This is required when the user wants to fit aggregated data
(e.g., via the RMSE cost function).
set_agg_data(drift_dm_obj, obs_data_ids, ...)The updated drift_dm_obj with aggregated stats_agg and
obs_data set to NULL.
a model object (of class drift_dm) to which the
aggregated data will be attached.
a data.frame containing individual-level observations.
Must include an ID column identifying participants.
optional arguments (currently supported are n_bins and
probs which are relevant when using the rmse cost function)
This function is intended for internal use and is called by
estimate_dm() when aggregated model fitting is requested.