Backend functions to compute the mean response times, standard deviations of response times, and response proportions; for both observed RTs or the predicted probability density functions.
calc_basic_stats_obs(rts_u, rts_l, one_cond)calc_basic_stats_pred(
pdf_u,
pdf_l,
one_cond,
t_vec,
dt,
skip_if_contr_low = NULL
)
A data.frame with columns:
Cond: Condition label.
Mean_U: Mean response time for the upper boundary
Mean_L: Mean response time for the lower boundary
SD_U: Mean response time for the upper boundary
SD_L: Mean response time for the lower boundary
P_U: Proportion of upper-boundary responses.
numeric, vectors of response times for the upper and lower boundaries.
character, a label for the condition.
numeric, vectors of probability density values for the upper and lower boundaries.
numeric vector, containing the time points corresponding to the probability density values.
a single numeric, providing the step size in t_vec.
a single numeric, threshold below which probability
densities are ignored (default is obtained from
drift_dm_skip_if_contr_low()).
For observed data, calculates mean RTs, standard deviations of RTs, and the proportion of upper responses.
The same statistics are calculated for the probability density values (via simple numerical integration)