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:

Usage

calc_stats_pred_obs(type, b_coding, conds, ...)

Arguments

type

character string, specifying the type of statistic to calculate. Available options are "cafs", "quantiles", and "delta_funs".

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:

This function gets called by calc_stats

Value

A data frame with the calculated statistic across conds (ordered according to Source).


[Package dRiftDM version 0.2.1 Index]