| starling-package | R Documentation |
**Bird note**: Starlings form murmurations — thousands of individual birds moving
as one coordinated, fluid shape with no central conductor, each responding only
to its nearest neighbours until a single coherent pattern emerges from the flock.
That is the visual the package is named for: murmuration() takes two
separate, uncoordinated sets of records and lets pairwise local comparisons
resolve into one coherent linked dataset. The supporting functions —
flock(), preflight(), check_medicare(), and
murmuration_plot() — are the pre-flight preparation and post-flight
review that make the murmuration trustworthy.
## Core workflow
preflight() — Run a battery of pre-linkage data
quality checks: completeness, duplicates, date plausibility, Medicare
validity, name quality, and factor-level consistency across both datasets.
check_medicare() — Validate Medicare numbers using
the Services Australia Modulus 10 weighted checksum (can also be called
standalone or from preflight()).
flock() — Generate blocking variables (single-field,
phonetic, or composite) to partition records before linkage.
murmuration() — Perform probabilistic record linkage
using the Fellegi-Sunter EM algorithm (reclin2) across four linkage
types: case-to-hospitalisation ("c2h"), vaccination-to-case
("v2c"), vaccination-to-hospitalisation ("v2h"), and
vaccination-to-event ("v2e").
murmuration_plot() — Plot the linkage weight
distribution to confirm the threshold is placed at the natural valley between
match and non-match clusters before finalising.
## Threshold guidance
See murmuration_plot for a discussion of threshold selection.
The default of 12 in murmuration() is a conservative starting point;
17 is a reasonable default for Australian linkage with Medicare + 2 names + DOB.
Always plot the distribution first.
Maintainer: Nicolas Smoll nicolas.smoll@health.qld.gov.au (ORCID)
Authors:
Nicolas Smoll nicolas.smoll@health.qld.gov.au (ORCID)
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.