create_example_lineup_data: Create Example Lineup Data

View source: R/data_standardization.R

create_example_lineup_dataR Documentation

Create Example Lineup Data

Description

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.

Usage

create_example_lineup_data(
  n_trials = 100,
  prop_target_present = 0.5,
  include_confidence = TRUE,
  include_response_time = FALSE,
  seed = NULL
)

Arguments

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)

Value

A lineup_data object with simulated example data

Examples

# 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)


r4lineups documentation built on Nov. 10, 2026, 1:08 a.m.