Skip to contents

Combines the per-field similarities in cmp into a single additive match score, applying the per-pair surname-rarity adjustment to the last_name field.

Usage

score_pairs(cmp, weights, sw_x, sw_y, last_field = "last_name")

Arguments

cmp

A data frame of comparison columns (numeric similarities in [0, 1], NA where a field was missing on either side). Column names must match the names of weights.

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.

Value

Numeric vector of scores, one per row of cmp.