getParetoThreshold: Estimate Threshold from Pareto Distribution

getParetoThresholdR Documentation

Estimate Threshold from Pareto Distribution

Description

Calculates a classification threshold based on a generalized Pareto distribution (GPD) fitted to the weights distribution of the given data pairs.

Usage

getParetoThreshold(rpairs, quantil = 0.95, interval = NA)
## S4 method for signature 'RecLinkData'
getParetoThreshold(rpairs, quantil = 0.95, interval = NA)
## S4 method for signature 'RLBigData'
getParetoThreshold(rpairs, quantil = 0.95, interval = NA)

Arguments

rpairs

A "RecLinkData" or "RLBigData" object with weights.The data for which to compute a threshold.

quantil

A real number between 0 and 1. The quantile which to compute.

interval

A numeric vector denoting the interval on which to fit a GPD.

Details

This threshold calculation is based on the assumption that the distribution of weights exhibit a ‘fat tail’ which can be fitted by a generalized Pareto distribution (GPD). The limits of the interval which is subject to the fitting are usually determined by reviewing a mean residual life plot of the data. If the limits are not externally supplied, a MRL plot is displayed from which the endpoints can be selected by mouse input. If only one endpoint is selected or supplied, the greater endpoint is set to the maximum weight. A suitable interval is characterized by a relatively long, approximately linear segment of the plot.

Value

A classification threshold.

Note

The quality of matching varies, poor results can occur in some cases. Evaluate carefully before applying to a real case.

Author(s)

Andreas Borg, Murat Sariyar

References

Sariyar M., Borg A. and Pommerening M.: Controlling false match rates in record linkage using extreme value theory. Journal of Biomedical Informatics, doi: 10.1016/j.jbi.2011.02.008.

See Also

emWeights and epiWeights for calculating weights, emClassify and epiClassify for classifying with the returned threshold.

Examples

  data(RLdata500)
  rpairs=compare.dedup(RLdata500, identity=identity.RLdata500, strcmp=TRUE,
    blockfld=list(1,3,5:7))
  rpairs=epiWeights(rpairs)
  # leave out argument interval to choose from plot
  ## Not run: threshold=getParetoThreshold(rpairs,interval=c(0.68, 0.79))
  ## Not run: summary(epiClassify(rpairs,threshold))

RecordLinkage documentation built on Nov. 10, 2022, 5:42 p.m.