| calc_basic_stats_obs | R Documentation |
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
)
rts_u, rts_l |
numeric, vectors of response times for the upper and lower boundaries. |
one_cond |
character, a label for the condition. |
pdf_u, pdf_l |
numeric, vectors of probability density values for the upper and lower boundaries. |
t_vec |
numeric vector, containing the time points corresponding to the probability density values. |
dt |
a single numeric, providing the step size in |
skip_if_contr_low |
a single numeric, threshold below which probability
densities are ignored (default is obtained from
|
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)
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.