pairwiseLR {dvir}R Documentation

Pairwise LR matrix

Description

For a given DVI problem, compute the matrix consisting of pairwise likelihood ratios LR_{i,j} comparing V_i = M_j to the null. The output may be reduced by specifying arguments limit or nkeep.

Usage

pairwiseLR(
  dvi,
  pairings = NULL,
  ignoreSex = FALSE,
  limit = 0,
  nkeep = NULL,
  check = TRUE,
  numCores = 1,
  verbose = FALSE
)

Arguments

dvi

A dviData object, typically created with dviData().

pairings

A list of possible pairings for each victim. If NULL, all sex-consistent pairings are used.

ignoreSex

A logical.

limit

A nonnegative number controlling the pairings slot of the output: Only pairings with LR greater or equal to limit are kept. If zero (default), pairings with LR > 0 are kept.

nkeep

An integer, or NULL. If given, only the nkeep most likely pairings are kept for each victim.

check

A logical, indicating if the input data should be checked for consistency.

numCores

An integer; the number of cores used in parallelisation. Default: 1.

verbose

A logical.

Value

A list with 3 elements:

Examples

pairwiseLR(example1, verbose = TRUE)


[Package dvir version 3.2.1 Index]