SPARRAfairness: Analysis of Differential Behaviour of SPARRA Score Across Demographic Groups

The SPARRA risk score (Scottish Patients At Risk of admission and Re-Admission) estimates yearly risk of emergency hospital admission using electronic health records on a monthly basis for most of the Scottish population. This package implements a suite of functions used to analyse the behaviour and performance of the score, focusing particularly on differential performance over demographically-defined groups. It includes useful utility functions to plot receiver-operator-characteristic, precision-recall and calibration curves, draw stock human figures, estimate counterfactual quantities without the need to re-compute risk scores, to simulate a semi-realistic dataset. Our manuscript can be found at: <doi:10.1371/journal.pdig.0000675>.

Package details

AuthorIoanna Thoma [aut] (<https://orcid.org/0000-0001-6928-2198>), Catalina Vallejos [ctb] (<https://orcid.org/0000-0003-3638-1960>), Louis Aslett [ctb] (<https://orcid.org/0000-0003-2211-233X>), Jill Ireland [ctb] (<https://orcid.org/0009-0009-5324-6630>), Simon Rogers [ctb] (<https://orcid.org/0000-0003-3578-4477>), James Liley [cre, aut] (<https://orcid.org/0000-0002-0049-8238>)
MaintainerJames Liley <james.liley@durham.ac.uk>
LicenseGPL (>= 3)
Version0.1.0.0
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("SPARRAfairness")

Try the SPARRAfairness package in your browser

Any scripts or data that you put into this service are public.

SPARRAfairness documentation built on April 11, 2025, 6:17 p.m.