plot_error_rate_conf: Plot Error Rate by Confidence Level

View source: R/ppv_range_plots.R

plot_error_rate_confR Documentation

Plot Error Rate by Confidence Level

Description

Creates a ggplot visualization showing the mistaken identification rate (from target-absent lineups) across confidence levels.

Usage

plot_error_rate_conf(ppv_range_obj, show_points = TRUE)

Arguments

ppv_range_obj

A lineup_ppv_range object from ppv_range_by_confidence(), or a dataframe with columns: confidence, error_rate

show_points

Logical. Whether to show points at each confidence level (default = TRUE)

Details

The error rate is computed from target-absent (culprit-absent) lineups as: (suspect IDs + filler IDs) / target-absent trials in that confidence bin

The denominator is the number of target-absent trials within the bin, so the value is the share of responses at that confidence that were identifications. It is not a calibration measure and need not fall as confidence rises: when rejections occur mainly at low confidence, the rate is near 1 in the higher bins.

Value

A ggplot2 object

Examples

data(lineup_example)
ppv_range <- ppv_range_by_confidence(lineup_example,
                                     confidence_bins = c(0, 60, 80, 100))
plot_error_rate_conf(ppv_range)


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