nhscancerwaits: NHS Cancer Waiting-Time Analysis, Benchmarking and Multilevel Modelling

Provides tools for importing, harmonising, cleaning, analysing, benchmarking and visualising National Health Service (NHS) England Cancer Waiting Times data. The package supports national performance monitoring, provider-level benchmarking and cancer pathway comparisons through key performance indicator summaries, provider filtering, clustering analyses, mixed-effects regression models, variance decomposition, intraclass correlation coefficient estimation, adjusted provider performance estimation and sensitivity analyses. Functions are included for exploratory analysis, publication-ready visualisations and spreadsheet exports, supporting reproducible health services research, cancer services evaluation, quality improvement and assessment of waiting-time performance across healthcare organisations. Mixed-effects modelling functionality is based on Bates et al. (2015) <doi:10.18637/jss.v067.i01>. Multilevel modelling concepts and variance decomposition follow Gelman and Hill (2007, ISBN:9780521686891). Cancer Waiting Times definitions and reporting standards follow NHS England <https://www.england.nhs.uk/statistics/statistical-work-areas/cancer-waiting-times/>.

Version: 1.0.2
Depends: R (≥ 4.2.0)
Imports: dplyr, tidyr, readr, readxl, stringr, lubridate, rlang, ggplot2, scales, lme4, broom.mixed, performance, cluster, stats, writexl
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown, quarto, covr
Published: 2026-06-19
DOI: 10.32614/CRAN.package.nhscancerwaits (may not be active yet)
Author: Muhammad Zahir Khan ORCID iD [aut, cre]
Maintainer: Muhammad Zahir Khan <zahirstat007 at gmail.com>
BugReports: https://github.com/zerish12/nhscancerwaits/issues
License: MIT + file LICENSE
URL: https://github.com/zerish12/nhscancerwaits
NeedsCompilation: no
Language: en-GB
Materials: README, NEWS
CRAN checks: nhscancerwaits results

Documentation:

Reference manual: nhscancerwaits.html , nhscancerwaits.pdf
Vignettes: nhscancerwaits Workflow (source, R code)

Downloads:

Package source: nhscancerwaits_1.0.2.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): nhscancerwaits_1.0.2.tgz, r-oldrel (arm64): nhscancerwaits_1.0.2.tgz, r-release (x86_64): nhscancerwaits_1.0.2.tgz, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=nhscancerwaits to link to this page.