make_racdata: Compute RAC (Response Time-Accuracy Characteristic) Data

View source: R/rac_functions.R

make_racdataR Documentation

Compute RAC (Response Time-Accuracy Characteristic) Data

Description

Computes response time-accuracy data for lineup identifications following the approach described in Seale-Carlisle et al. (2019) and implemented in pyWitness (Mickes et al., 2024). RAC analysis shows the relationship between response time and accuracy for suspect identifications.

Usage

make_racdata(
  data,
  lineup_size = 6,
  time_bins = NULL,
  innocent_suspect = "auto"
)

Arguments

data

A dataframe with the following columns:

  • target_present: Logical. TRUE if guilty suspect in lineup

  • identification: Character. "suspect", "filler", or "reject"

  • response_time: Numeric. Response time in milliseconds (or seconds)

lineup_size

Integer. Number of people in lineup (default = 6)

time_bins

Numeric vector of bin edges for grouping response times (e.g., c(0, 5000, 10000, 15000, 20000) creates bins in milliseconds). If NULL, uses individual response time values (not recommended for continuous data).

innocent_suspect

How innocent-suspect identifications in target-absent lineups are obtained. "designated": the lineups had a designated innocent suspect, so target-absent "suspect" rows are counted directly, and zero such rows means a false-ID rate of zero. "estimated": there was no designated innocent suspect, so the innocent-suspect count is estimated as filler IDs divided by lineup_size. "auto" (the default) chooses "designated" when any target-absent row is a suspect ID or the data have a non-missing suspect_pos column, and "estimated" otherwise, with a message.

Details

RAC analysis computes, for each response time bin:

Accuracy = \frac{Correct Suspect IDs}{Correct Suspect IDs + Incorrect Suspect IDs}

Explicit target-absent suspect IDs are used when present. Otherwise, target-absent filler IDs are divided by lineup size to estimate incorrect suspect IDs. The two estimators are never added together. Dividing by lineup size assumes the innocent suspect is chosen at the average filler rate, which holds for a fair lineup; with a biased lineup the estimated false-ID rate and the accuracy are wrong, and a designated innocent suspect should be used when one is available. The bin mean time uses the same suspect-ID observations as accuracy; estimated-mode TA filler times receive weight 1/k. Bin edges must cover all supplied observations. Count accuracy depends on TP/TA sampling fractions and does not adjust to a different population base rate. The displayed binomial SE is approximate, especially for estimated counts.

RAC analysis is useful for examining the speed-accuracy tradeoff in eyewitness identifications. The hypothesis it examines is that faster responses indicate stronger memory, which would appear as higher accuracy for faster response times.

Value

A list containing:

  • rac_data: Dataframe with response time bins and accuracy

  • n_ids_per_bin: Number of suspect IDs in each time bin

  • overall_accuracy: Overall accuracy across all suspect IDs

References

Seale-Carlisle, T. M., Colloff, M. F., Flowe, H. D., Wells, W., Wixted, J. T., & Mickes, L. (2019). Confidence and response time as indicators of eyewitness identification accuracy in the lab and in the real world. Journal of Applied Research in Memory and Cognition, 8(4), 420-428.

Mickes, L., Seale-Carlisle, T. M., Chen, X., & Boogert, S. (2024). pyWitness 1.0: A python eyewitness identification analysis toolkit. Behavior Research Methods, 56, 1533-1550.

Examples

data <- create_example_lineup_data(n_trials = 200,
                                   include_response_time = TRUE,
                                   seed = 123)
rac <- make_racdata(data, time_bins = c(0, 4000, 8000, 12000, 20000))
rac$rac_data


r4lineups documentation built on Nov. 10, 2026, 1:08 a.m.