| make_roc | R Documentation |
Main function to compute and plot an ROC curve for eyewitness lineup data. This follows the methodology of Wixted & Mickes (2012) and Mickes (2015).
make_roc(
data,
lineup_size = 6,
show_plot = TRUE,
innocent_suspect = "auto",
...
)
data |
A dataframe with the following columns:
|
lineup_size |
Integer. Number of people in lineup (default = 6) |
show_plot |
Logical. Whether to display the plot (default = TRUE) |
innocent_suspect |
How innocent-suspect identifications in
target-absent lineups are obtained. |
... |
Additional arguments passed to make_roc_gg() |
ROC analysis measures discriminability - the ability to distinguish innocent from guilty suspects. According to Mickes (2015), ROC analysis is most relevant for policymakers deciding on system variables (e.g., simultaneous vs. sequential lineups, lineup size, etc.).
For estimator variables (e.g., exposure duration, retention interval), use
CAC analysis instead (see make_cac).
Without a designated innocent suspect, filler IDs in target-absent lineups are divided by lineup size to estimate the false-ID rate. This 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 so the ROC and pAUC, are wrong, and a designated innocent suspect should be used when one is available.
A list containing:
plot: ggplot2 object. Always returned, whatever show_plot is set to; show_plot controls only whether it is displayed immediately
roc_data: Dataframe with ROC curve points
pauc: Partial area under the curve
summary: Summary statistics
Wixted, J. T., & Mickes, L. (2012). The field of eyewitness memory should abandon probative value and embrace receiver operating characteristic analysis. Perspectives on Psychological Science, 7(3), 275-278.
Mickes, L. (2015). Receiver operating characteristic analysis and confidence-accuracy characteristic analysis in investigations of system variables and estimator variables that affect eyewitness memory. Journal of Applied Research in Memory and Cognition, 4(2), 93-102.
data(lineup_example)
roc_result <- make_roc(lineup_example)
print(roc_result$pauc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.