For each query, the best and second-best distinct candidate EINs, and the
cluster types they share. When they share one, the contest is within a
family - a hospital and its foundation, two chapters - not between
strangers. A YES won over a linked sibling by a thin margin is the case a
reference without the sibling would have auto-accepted unseen (matchdb
PLAN.md section 8a); family_contest marks it.
Usage
np_pair_links(
tiered,
clusters,
pairs = attr(tiered, "pairs"),
margin = 0.05,
types = NULL
)Arguments
- tiered
The result of
np_cascade(), carryingattr(, "pairs").- clusters
Cluster membership: a data frame with
cluster_id,cluster_type,.ein(orein), and optionallysizeandbrand_tokens- matchdb'scluster_memberjoined tocluster.- pairs
The scored candidate pairs. Defaults to
attr(tiered, "pairs").- margin
A winner ahead of a linked runner-up by less than this is a
family_contest.- types
Cluster types to use;
NULLfor all.