Internal function that creates or updates the aggregated statistics
(stats_agg and stats_agg_info) in a drift_dm object, depending
on the specified cost function. For maximum likelihood estimation
("neg_log_like"), aggregated statistics are removed, because the raw
RTs are used directly.
Arguments
- drift_dm_obj
a
drift_dmobject.- which_cost_function
a character string, indicating which cost function is used. Must be one of
drift_dm_cost_functions().- probs
optional numeric vector of probabilities for quantile calculation. If
NULL, defaults are taken fromdrift_dm_default_probs().- n_bins
an optional integer, giving the number of bins for the CAFs. If
NULL, defaults are taken fromdrift_dm_default_n_bins().
Value
the input drift_dm_obj, with its stats_agg and
stats_agg_info entries updated or removed, depending on the cost
function and availability of observed data
Note
This function is called by obs_data() and
cost_function()
