generatePairings {dvir}R Documentation

Sex-consistent pairings

Description

Generate a list of sex-consistent pairings for each victim in a DVI problem. By default, the empty pairing (denoted *) is included for each victim.

Usage

generatePairings(dvi, includeEmpty = TRUE, ignoreSex = FALSE)

Arguments

dvi

A dviData object, typically created with dviData().

includeEmpty

A logical. If TRUE (default), the do-nothing symbol (*) is included for each victim.

ignoreSex

A logical.

Value

A list of character vectors. Each vector is a subset of missing, plus the character * denoting no pairing.

See Also

jointDVI()

Examples


pm = list(singleton("V1", sex = 1),
          singleton("V2", sex = 2))
          
missing = paste0("M", 1:4)
am = list(nuclearPed(children = missing[1:3]),
          nuclearPed(children = missing[4], sex = 2))

dvi = dviData(pm, am, missing)
generatePairings(dvi)


[Package dvir version 3.2.1 Index]