Learn R Programming

Quality improvement charts for R

qicharts2 is an R package with functions for making run charts, Shewhart control charts and Pareto charts for continuous quality improvement. Included control charts are: I, MR, Xbar, S, T, C, U, U', P, P', and G charts.

Non-random variation in the form of minor to moderate persistent shifts in data over time is identified by the Anhoej rules for unusually long runs and unusually few crossing [Anhoej, Olesen (2014) https://doi.org/10.1371/journal.pone.0113825].

Non-random variation in the form of larger, possibly transient, shifts is identified by Shewhart's 3-sigma rule [Mohammed, Worthington, Woodall (2008) https://doi.org/10.1136/qshc.2004.012047].

Exported functions

  • qic() Run and control charts.

  • summary.qic() Summary of qic object.

  • paretochart() Pareto charts.

  • bchart() Bernoulli CUSUM chart (EXPERIMENTAL).

Included datasets

  • hospital_infections Number of hospital acquired bacteremia, Clostridium difficile infections, and urinary tract infections in six hospitals.

  • cabg Individual coronary artery bypass graft operations.

  • cdi Hospital acquired Clostridium difficile infections (CDI) before and after an intervention to reduce the risk of CDI.

  • nhs_accidents Number of attendances to major accident and emergency hospital departments in the NHS that were seen within 4 hours of arrival over twenty weeks.

  • gtt Adverse events during hospitalisation found by the Global Trigger Tool.

Instructions

  • Install stable version from CRAN: install.packages('qicharts2').

or

  • Install development version from github: devtools::install_github('anhoej/qicharts2', build_vignettes = TRUE).

then

Copy Link

Version

Install

install.packages('qicharts2')

Monthly Downloads

1,334

Version

0.8.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jacob Anhoej

Last Published

June 23rd, 2025

Functions in qicharts2 (0.8.1)

paretochart

Paretochart
lots

Lots
qic

Statistical process control charts.
complaints

Complaints
cdi

Clostridium difficile infections
bchart

Bernoulli CUSUM chart for binary data (EXPERIMENTAL)
summary.qic

Prints summary of a qic object
qicharts2

qicharts2 package
cabg

Coronary artery bypass graft operations
hospital_infections

Hospital acquired infections
gtt

Patient harm identified using the Global Trigger Tool
nhs_accidents

NHS accidents