View source: R/data_standardization.R
| create_example_lineup_data | R Documentation |
Generate simulated lineup identification data in standardized format. Useful for testing, demonstrations, and learning r4lineups functions. The data are simulated, and confidence is generated independently of accuracy, so confidence-based analyses (ROC, CAC, calibration) of these data show no relationship between confidence and accuracy and are not typical of eyewitness data.
create_example_lineup_data(
n_trials = 100,
prop_target_present = 0.5,
include_confidence = TRUE,
include_response_time = FALSE,
seed = NULL
)
n_trials |
Integer. Number of trials to generate (default = 100) |
prop_target_present |
Numeric. Proportion of target-present lineups (default = 0.5) |
include_confidence |
Logical. Include confidence ratings (default = TRUE) |
include_response_time |
Logical. Include response times (default = FALSE) |
seed |
Integer. Random seed for reproducibility (default = NULL) |
A lineup_data object with simulated example data
# Basic example data
example_data <- create_example_lineup_data(n_trials = 200, seed = 123)
print(example_data)
# Use in analysis
roc <- make_roc(example_data, lineup_size = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.