View source: R/eig_functions.R
| make_eig_data | R Documentation |
Prepares response category data for Expected Information Gain (EIG) analysis following Starns et al. (2023). Creates response categories from identification decisions and confidence levels.
make_eig_data(
data,
confidence_bins = NULL,
lineup_size = 6,
innocent_suspect = "auto"
)
data |
A dataframe with the following columns:
|
confidence_bins |
Numeric vector of bin edges for grouping confidence (e.g., c(0, 60, 80, 100) creates bins 0-60, 61-80, 81-100). If NULL, uses individual confidence levels. |
lineup_size |
Nominal lineup size. Used to split target-absent filler identifications when no designated innocent suspect is present. |
innocent_suspect |
How innocent-suspect identifications in
target-absent lineups are obtained. |
Response categories are defined as combinations of identification decision (suspect/filler/reject) and confidence level or bin. This function counts the frequency of each response category separately for target-present (guilty) and target-absent (innocent) lineups.
When no innocent suspect is designated (innocent_suspect =
"estimated", or "auto" on such data), 1 / lineup_size of each
target-absent filler count is moved into the matching suspect category, so
the result assumes a fair lineup of lineup_size members.
A list containing:
response_data: Dataframe with response categories and frequencies
n_guilty: Total number of target-present lineups
n_innocent: Total number of target-absent lineups
confidence_bins: The binning specification used (if any)
Starns, J. J., Cohen, A. L., & Rotello, C. M. (2023). A complete method for assessing the effectiveness of eyewitness identification procedures: Expected information gain. Psychological Review, 130(3), 677–719.
data(lineup_example)
eig_data <- make_eig_data(lineup_example, confidence_bins = c(0, 60, 80, 100))
eig_data$response_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.