id_adj_name: Match by confidence levels

Description Usage Arguments Value Examples

View source: R/adjust_id.R

Description

A function to adjust the id rates for ca lineups using the 1/(lineup size) method; match and adjust id rates by names of confidence levels for both filler and suspect ids.

Usage

1
id_adj_name(rate, conf = NULL, fid, sid, lsize = 6)

Arguments

rate

ID rate vector.

conf

Confidence levels for the id rate vector. Default to be NULL.

fid

Mapping confidence levels from filler id.

sid

To-be-matched confidence levels for suspect id. Must have equal length as fid.

lsize

Lineup size. Defaults to 6.

Value

Adjusted ID vector.

Examples

1
2
3
4
5
6
7
ca_id <- c(rep(0,3), rep(c(0.1, 0.15, 0.25), 2))
names(ca_id) <- paste0(rep(c("IDS", "IDF", "REJ"), each = 3), c("high", "medium", "low"))

fid_conf <- paste0("IDF", c("high", "medium", "low"))
sid_conf <- paste0("IDS", c("high", "medium", "low"))

id_adj_name(ca_id, fid = fid_conf, sid = sid_conf)

fullROC documentation built on Jan. 16, 2021, 5:40 p.m.

Related to id_adj_name in fullROC...