Learn R Programming

fastLink (version 0.6.1)

confusion: Get confusion table for fastLink objects

Description

Calculate confusion table after running fastLink().

Usage

confusion(object, threshold)

Value

'confusion()' returns two tables - one calculating the confusion table, and another calculating a series of additional summary statistics.

Arguments

object

A 'fastLink' object or list of fastLink objects. Can only be run if 'return.all = TRUE' in 'fastLink().'

threshold

The matching threshold above which a pair is a true match. Default is .85

Author

Ted Enamorado <ted.enamorado@gmail.com> and Ben Fifield <benfifield@gmail.com>

Examples

Run this code
if (FALSE) {
 out <- fastLink(
 dfA = dfA, dfB = dfB,
 varnames = c("firstname", "middlename", "lastname"),
 stringdist.match = c("firstname", "middlename", "lastname"),
 partial.match = c("firstname", "lastname", "streetname"),
 return.all = TRUE)

 ct <- confusion(out)
}

Run the code above in your browser using DataLab