Reweights posterior probabilities to account for observed frequency of names. Downweights posterior probability of match if first name is common, upweights if first name is uncommon.
nameReweight(dfA, dfB, EM, gammalist, matchesLink,
varnames, firstname.field, patterns, threshold.match, n.cores)
nameReweight()
returns a list containing the following elements:
The reweighted zeta estimates for each matched element in dataset A.
The reweighted zeta estimates for each matched element in dataset B.
The full version of dataset A that is being matched.
The full version of dataset B that is being matched.
The EM object from emlinkMARmov()
The list of gamma objects calculated on the full
dataset that indicate matching patterns, which is fed into tableCounts()
and matchesLink()
.
The output from matchesLink()
.
A vector of variable names to use for matching. Must be present in both matchesA and matchesB.
A vector of booleans, indicating whether each field indicates first name. TRUE if so, otherwise FALSE.
The output from getPatterns()
.
A number between 0 and 1 indicating either the lower bound (if only one number provided) or the range of certainty that the user wants to declare a match. For instance, threshold.match = .85 will return all pairs with posterior probability greater than .85 as matches, while threshold.match = c(.85, .95) will return all pairs with posterior probability between .85 and .95 as matches.
Number of cores to parallelize over. Default is NULL.
Ted Enamorado <ted.enamorado@gmail.com> and Ben Fifield <benfifield@gmail.com>