calc_stats_pred_obs | R Documentation |
This function derives statistics that can be calculated for both model predictions and observed data. However, it does not calculate it, but rather calls the respective backend functions. Supported statistics currently include:
Conditional Accuracy Functions (CAFs; calc_cafs()
)
Quantiles (calc_quantiles()
)
Delta Functions (calc_delta_funs()
)
calc_stats_pred_obs(type, b_coding, conds, ...)
type |
character string, specifying the type of statistic to calculate.
Available options are |
b_coding |
list for boundary coding (see b_coding). |
conds |
character vector, specifying the conditions to include in calculations (used for labeling and subsetting the model PDFs and the observed data). |
... |
Additional parameters passed on to the specific statistic calculation function (see Details). |
When calling this function the arguments all_rts_u
/all_rts_l
and/or
all_pdfs
must be specified (see
re_evaluate_model, obs_data). Otherwise, the backend
functions won't work properly. Further arguments are:
for CAFS: n_bins
controls the number of bins, with a default of 5.
for Quantiles and Delta Functions: probs
c ontrols the quantiles to
calculate. Default is seq(0.1, 0.9, 0.1)
(see drift_dm_default_probs()
).
This function gets called by calc_stats
A data frame with the calculated statistic across conds
(ordered according to Source
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.