Score a table of compared pairs
score_pairs.RdCombines the per-field similarities in cmp into a single additive match
score, applying the per-pair surname-rarity adjustment to the last_name
field.
Arguments
- cmp
A data frame of comparison columns (numeric similarities in
[0, 1],NAwhere a field was missing on either side). Column names must match the names ofweights.- weights
Named numeric vector of base weights (see
default_weights()).- sw_x, sw_y
Per-pair surname-rarity weights for the two sides (from
surname_weight(), indexed to the pairs).- last_field
Name of the surname field to frequency-adjust.