adjust_fn: Correct False Negatives in a vrmatch Output for All Snapshots

Description Usage Arguments Details Value

View source: R/adjust_fn.R

Description

This function takes the 'vrmatch' output and using a voter ID variable, re-matches the nonmatches that have the same ID back as a match—i.e., correcting the false negatives. This is sometimes necessary for real applications, especially when you do not wish to exclude ID matches from probabilistic record linkage.

Usage

1
adjust_fn(match, fn_ids = c("lVoterUniqueID", "sAffNumber"))

Arguments

match

The vrmatch output to correct false negatives.

fn_ids

Voter IDs used in detecting and correcting false negatives.

Details

Note that this function is only relevant when using 'vrmatch' when the reference ID was not used to exclude exact matches. In addition, after the correction, the EM object and et cetera from fastLink has not been corrected accordingly and should not be used in inference.

Also note that this assumes that if a voter ID matches, it is never a false positive, and that there are no duplicates by 'fn_ids'.

Value

Corrected vrmatch output.


sysilviakim/voterdiffR documentation built on June 22, 2020, 6:51 p.m.