Package: SPARRAfairness 0.0.0.2

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.

Authors:Ioanna Thoma [aut], Catalina Vallejos [ctb], Louis Aslett [ctb], Jill Ireland [ctb], Simon Rogers [ctb], James Liley [cre, aut]

SPARRAfairness_0.0.0.2.tar.gz
SPARRAfairness_0.0.0.2.zip(r-4.5)SPARRAfairness_0.0.0.2.zip(r-4.4)SPARRAfairness_0.0.0.2.zip(r-4.3)
SPARRAfairness_0.0.0.2.tgz(r-4.5-any)SPARRAfairness_0.0.0.2.tgz(r-4.4-any)SPARRAfairness_0.0.0.2.tgz(r-4.3-any)
SPARRAfairness_0.0.0.2.tar.gz(r-4.5-noble)SPARRAfairness_0.0.0.2.tar.gz(r-4.4-noble)
SPARRAfairness_0.0.0.2.tgz(r-4.4-emscripten)SPARRAfairness_0.0.0.2.tgz(r-4.3-emscripten)
SPARRAfairness.pdf |SPARRAfairness.html
SPARRAfairness/json (API)
NEWS

# Install 'SPARRAfairness' in R:
install.packages('SPARRAfairness', repos = c('https://jamesliley.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.70 score 4 scripts 543 downloads 23 exports 43 dependencies

Last updated 4 months agofrom:36fae08ab9. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 06 2025
R-4.5-winOKFeb 06 2025
R-4.5-macOKFeb 06 2025
R-4.5-linuxOKFeb 06 2025
R-4.4-winOKFeb 06 2025
R-4.4-macOKFeb 06 2025
R-4.3-winOKFeb 06 2025
R-4.3-macOKFeb 06 2025

Exports:abadjusted_fdradjusted_forcal_2panelcounterfactual_yhatdat2matdemographic_paritydrawpersondrawpropfor_breakdowngetcalgetprcgetrocgroup_fairnessgroupmetric_2panelintegrallogisticlogitphs_coloursplot_decompprc_2panelroc_2panelsim_pop_data

Dependencies:bitopscaToolsclicolorspacecvAUCdata.tablefansifarverggplot2ggrepelgluegplotsgtablegtoolsisobandKernSmoothlabelinglatticelifecyclemagrittrMASSMatrixmatrixStatsmgcvmunsellmvtnormnlmepatchworkpillarpkgconfigR6rangerRColorBrewerRcppRcppEigenrlangROCRscalestibbleutf8vctrsviridisLitewithr

SPARRAfairness example

Rendered fromSPARRAfairness_example.Rmdusingknitr::knitron Feb 06 2025.

Last update: 2024-11-07
Started: 2023-04-20