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,
rts_u = NULL,
rts_l = NULL,
one_cond,
n_bins = NULL,
b_coding
)
pdf_u , pdf_l |
either NULL or density vectors |
rts_u , rts_l |
either NULL or RT vectors |
one_cond |
a label for the data.frame |
n_bins |
the number of bins, default is 5 |
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.