View source: R/cac_functions.R
| make_cac | R Documentation |
Main function to compute and plot CAC (Confidence-Accuracy Characteristic) for eyewitness lineup data.
make_cac(
data,
lineup_size = 6,
confidence_bins = NULL,
show_plot = TRUE,
innocent_suspect = "auto",
base_rate = NULL,
...
)
data |
A dataframe with columns: target_present, identification, confidence |
lineup_size |
Integer. Number of people in lineup (default = 6) |
confidence_bins |
Numeric vector of bin edges (optional) |
show_plot |
Logical. Whether to display the plot (default = TRUE) |
innocent_suspect |
How innocent-suspect identifications in
target-absent lineups are obtained. |
base_rate |
See |
... |
Additional arguments passed to make_cac_gg() |
A list containing CAC data and plot
data(lineup_example)
cac_result <- make_cac(lineup_example, confidence_bins = c(0, 60, 80, 100))
print(cac_result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.