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 |
|
---|---|
Author | Ioanna 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>) |
Maintainer | James Liley <james.liley@durham.ac.uk> |
License | GPL (>= 3) |
Version | 0.1.0.0 |
Package repository | View on CRAN |
Installation |
Install the latest version of this package by entering the following in R:
|
Any 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.