| calc_cafs | R Documentation |
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
)
pdf_u, pdf_l |
density values for the upper and lower boundary |
t_vec |
the time space |
rts_u, rts_l |
vectors of RTs for the upper and lower boundary |
one_cond |
character label |
n_bins |
number of bins to use for the CAFs |
b_coding |
used for accessing the upper boundary label, determines
the corresponding column of the returned data.frame (e.g., P_ |
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.
a data.frame with "Source", "Cond", "Bin"s, "P_<u_label>" for the CAFs of type c("cafs", "sum_dist", "stats_dm", "data.frame")
new_stats_dm()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.