ED Atlas Posterior Sample Files
https://doi.org/10.57804/ghhe-2286
This dataset contains the fitted statistical models behind the ED Atlas. They are Bayesian logistic regression models that give the probability of an outcome after an emergency department (ED) visit, given the patient’s sex, age and presenting complaint. The models were trained on the Swedish SwED cohort, which covers ED visits in [regions/hospitals, years, approx. number of visits]. SwED is linked to the National Patient Register and the Cause of Death Register (Socialstyrelsen).
The material is model parameters. It contains no individual-level data and no personal data. Each model is stored as a NetCDF file (.nc) with posterior samples of the regression coefficients, drawn with MCMC (PyMC 5.17.0, numpyro sampler, 8,000 draws per model). The files can be read with any NetCDF/HDF5 reader, for example ArviZ/xarray in Python.
The dataset contains:
One model for 30-day mortality, defined as death within 30 days of ED arrival, and one base model with sex and age only.
930 diagnosis models, one per ICD-10 chapter, block or three-character code. Each gives the probability of that diagnosis being registered [define: time window and care setting] after the ED visit.
For each model, a CSV file listing the column order (the SNOMED CT complaint codes it includes).
A README with step-by-step instructions, in pseudocode, for making a prediction from sex, age and a presenting complaint.
Model inputs are sex, age (adults, 18 and over) and one presenting complaint coded in SNOMED CT. Age is modelled with a natural cubic spline, and sex, age and complaint interact. Presenting complaints use SNOMED CT concept identifiers. The SNOMED CT terms themselves are not included.
The material can be reused to compute risk estimates for new patients, to compare with other models or cohorts, or to study how complaint, age and sex relate to outcomes.
Download 28 files with open access (106.6 GiB)
Files with open access (28)
Files with open access (28)
Citation and access
Citation and access
Access level:
Creator/Principal investigator(s):
- Frida Blankenau – Uppsala University
Research principal:
Data contains personal data:
No
Citation:
Language:
Method and outcome
Method and outcome
Population:
The dataset is the posterior samples of parameter estimates. The models were trained on the SwED cohort. The SwED cohort is a dataset based on 7,801,241 individual emergency department (ED) visits by 2,167,278 patients at 12 Swedish hospitals of varying sizes ranging from academic medical centers to smaller rural hospitals, with data on diagnoses from 2003 to 2016, and on mortality between 2003 and 2017. The hospitals were selected to ensure representation across diverse settings, including both large and small facilities as well as urban and rural environments, thereby providing a comprehensive reflection of the broader population.
Study design:
- Observational study
Data format/data structure:
Geographic coverage
Geographic coverage
Geographic location:
Administrative information
Administrative information
Ethical Review
Ethical Review
Reviewer:
- Swedish Ethical Review Authority
Opens a new window at ror.org.
ROR
Registration number:
2022-07108-01
Reviewer:
- Swedish Ethical Review Authority
Opens a new window at ror.org.
ROR
Registration number:
2023-05042-02
Reviewer:
- Swedish Ethical Review Authority
Opens a new window at ror.org.
ROR
Registration number:
2024-04058-02
Reviewer:
- Swedish Ethical Review Authority
Opens a new window at ror.org.
ROR
Registration number:
2025-08074-02
Topic and keywords
Topic and keywords
Swedish Standard Classification of Research Subjects 2025:
Relations
Relations
Metadata
Metadata
Version 1
