id_adj: Simple adjustment

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; is applicable to ordered id rates with the same confidence levels for all responses.

Usage

1
id_adj(rate, lsize = 6, csize = 3)

Arguments

rate

ID rate vector.

lsize

Lineup size. Defaults to 6.

csize

Number of confidence levels. Defaults to 3.

Value

Adjusted ID vector.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ca_id <- c(rep(0,3), rep(c(0.1, 0.15, 0.25), 2))
id_adj(ca_id)

## change line size to 5
id_adj(ca_id, lsize = 5)

## For multiple groups
ca_id2 <- c(c(rep(0,3), rep(c(0.1, 0.15, 0.25), 2)),
            c(rep(0,3), rep(c(0.1, 0.2, 0.3), 2)) )
group <- rep(c("a", "b"), each = 9)
## Adjust id rates by groups
by(ca_id2, group, id_adj)

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

Related to id_adj in fullROC...