Function that calls the underlying CAF calculation functions calc_cafs_obs and calc_cafs_pred. Does input checks and the data wrangling
calc_cafs(
pdf_u = NULL,
pdf_l = NULL,
t_vec = NULL,
rts_u = NULL,
rts_l = NULL,
one_cond,
n_bins = NULL,
b_coding
)a data.frame with "Source", "Cond", "Bin"s, "P_<u_label>" for the CAFs of type c("cafs", "sum_dist", "stats_dm", "data.frame")
density values for the upper and lower boundary
the time space
vectors of RTs for the upper and lower boundary
character label
number of bins to use for the CAFs
used for accessing the upper boundary label, determines
the corresponding column of the returned data.frame (e.g., P_corr).
if pdf_u and pdf_l are not NULL, returns CAFs of the densities
if rts_u and rts_l are not NULL, returns CAFs of the response times
if all are not NULL, returns both.
new_stats_dm()