id_adj_name {fullROC} | R Documentation |
Match by confidence levels
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
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
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)
[Package fullROC version 0.1.0 Index]