Learn R Programming

dvir (version 3.3.0)

excludePairing: Exclude pairings

Description

Disallow certain pairings by removing them from the list dvi$pairings of candidate pairings for a given victim sample.

Usage

excludePairing(dvi, victim, missing)

Value

A dviData object.

Arguments

dvi

A dviData object.

victim

The name of a single victim sample.

missing

The name(s) of one or several missing individuals.

Examples

Run this code
# Disallow V1 = M1 in the `example2` dataset:
ex = excludePairing(example2, victim = "V1", missing = "M1")
jointDVI(ex, verbose = FALSE)

# Compare with original
jointDVI(example2, verbose = FALSE)

# The only difference is in the `pairings` slot:
ex$pairings
example2$pairings

Run the code above in your browser using DataLab