View source: R/rac_functions.R
| make_racdata | R Documentation |
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.
make_racdata(
data,
lineup_size = 6,
time_bins = NULL,
innocent_suspect = "auto"
)
data |
A dataframe with the following columns:
|
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. |
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.
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
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.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.