id_adj {fullROC}R Documentation

Simple adjustment

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

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

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)


[Package fullROC version 0.1.0 Index]