Package: SPARRAfairness 0.0.0.2

James Liley

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.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://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:

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 142 downloads 23 exports 43 dependencies

Last updated 17 days agofrom:36fae08ab9. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 08 2024
R-4.5-linuxOKNov 08 2024

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 Nov 08 2024.

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