View source: R/ppv_range_plots.R
| plot_effective_size_conf | R Documentation |
Creates a ggplot visualization showing how effective lineup size varies across confidence levels.
plot_effective_size_conf(
ppv_range_obj,
show_nominal = TRUE,
show_points = TRUE
)
ppv_range_obj |
A lineup_ppv_range object from ppv_range_by_confidence(), or a dataframe with columns: confidence, effective_size |
show_nominal |
Logical. Whether to show nominal lineup size as reference line (default = TRUE) |
show_points |
Logical. Whether to show points at each confidence level (default = TRUE) |
Effective size < nominal size suggests lineup bias, where some members are implausible and rarely chosen. This can vary by confidence level if witnesses at different confidence levels have different lineup viewing strategies.
A horizontal line at the nominal lineup size provides a reference. Values
below this line suggest bias. Values at or above it do not establish a fair
lineup, because the plug-in estimate from sparse bins is biased (see the
small-sample bias section of esize_T).
A ggplot2 object
data(lineup_example)
ppv_range <- ppv_range_by_confidence(lineup_example,
confidence_bins = c(0, 60, 80, 100))
plot_effective_size_conf(ppv_range)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.