calc_stats_pred_obs {dRiftDM} | R Documentation |
Calculate Statistics for Model Prediction and/or Observed Data
Description
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()
)
Usage
calc_stats_pred_obs(type, b_coding, conds, ...)
Arguments
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). |
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 isseq(0.1, 0.9, 0.1)
(seedrift_dm_default_probs()
).
This function gets called by calc_stats
Value
A data frame with the calculated statistic across conds
(ordered according to Source
).