This directory contains synthetic datasets bundled with the starling package for use in vignettes, documentation examples, and tests.
These files are not committed to version control. To build them, run:
source("data-raw/starling_synthetic_data.R")
from the package root (i.e. with the working directory set to starling/).
This produces:
| File | Description |
|---|---|
| cases_notifiable.rda | 300-record synthetic notifiable disease linelist |
| vax_air.rda | 400-record synthetic AIR vaccination history |
Both are also written as CSVs to inst/extdata/ for users who want to
load them without data().
cases_notifiableA synthetic EDIS/case notification linelist. Columns:
| Column | Type | Description |
|---|---|---|
| id_var | character | Unique case identifier (EDIS_00001 etc.) |
| true_link_id | character | Matching id_var from vax_air for true matches; NA for unmatched |
| lettername1 | character | First name (standardised by clean_the_nest()) |
| lettername2 | character | Surname |
| dob | Date | Date of birth |
| gender | character | "Male" or "Female" |
| postcode | character | Sunshine Coast postcode (4550–4562) |
| medicare10 | character | 10-digit Medicare number (~10% deliberately corrupted) |
| onset_date | Date | Date of symptom onset (2024 calendar year) |
| pathogen | character | Notified pathogen |
true_link_id is the ground-truth column used in the linked-cohort vignette
to compute recall and precision. It is never passed to murmuration() — it
exists only for post-hoc validation.
vax_airA synthetic Australian Immunisation Register extract. Columns:
| Column | Type | Description |
|---|---|---|
| id_var | character | Unique AIR identifier (AIR_00001 etc.) |
| lettername1 | character | First name |
| lettername2 | character | Surname |
| dob | Date | Date of birth |
| gender | character | "Male" or "Female" |
| postcode | character | Sunshine Coast postcode |
| medicare10 | character | 10-digit Medicare number (all valid checksums) |
| vax_date_1 – vax_date_4 | Date | Vaccination dates (NA if fewer doses) |
| vax_type_1 – vax_type_4 | character | Vaccine type per dose |
vax_air (true_link_id is non-NA)check_medicare(), preflight(),
flock(), murmuration(), and perch() on realistic messy dataAny scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.