Backend functions to calculate quantiles for RT vectors or pdfs
calc_quantiles_obs(rts_u, rts_l, one_cond, probs)calc_quantiles_pred(
pdf_u,
pdf_l,
t_vec,
one_cond,
probs,
dt,
skip_if_contr_low = NULL
)
a data.frame with the "Cond" label, the "Prob"s and "Quant_U" and "Quant_L" for the quantiles
vectors of RTs for the upper and lower boundary
character label
numeric vector with values between 0 and 1 for the probability levels
density values for the upper and lower boundary
the time space (required for the pdfs)
the step size corresponding to the time space
numeric. If the contribution of the upper
or lower PDF to the overall PDF is too low, return NAs for
this PDF (see also drift_dm_skip_if_contr_low()).
for RTs: straightforward via stats::quantile.
for Densities: Calculate CDF (for each pdf separately here), and then map the desired probability level via the CDF (y-axis) to the time space (x-axis)