calc_cafs: Calculate CAFs

View source: R/core_stats.R

calc_cafsR Documentation

Calculate CAFs

Description

Function that calls the underlying CAF calculation functions calc_cafs_obs and calc_cafs_pred. Does input checks and the data wrangling

Usage

calc_cafs(
  pdf_u = NULL,
  pdf_l = NULL,
  rts_u = NULL,
  rts_l = NULL,
  one_cond,
  n_bins = NULL,
  b_coding
)

Arguments

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_corr).

Details

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.

Value

a data.frame with "Source", "Cond", "Bin"s, "P_<u_label>" for the CAFs of type c("cafs", "sum_dist", "stats_dm", "data.frame")

See Also

new_stats_dm()


dRiftDM documentation built on April 3, 2025, 7:48 p.m.