Quality Improvement Charts

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) ]. Non-random variation in the form of larger, possibly transient, shifts is identified by Shewhart's 3-sigma rule [Mohammed, Worthington, Woodall (2008) ].


Build Status CRAN_Status_Badge DOI DOI

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.

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

News

qicharts2 0.6.0

  • Allow NULL as title argument in paretochart (thanks to Andrew Hill).
  • Fix c4() for large n (thanks to pwildenhain for the bug report and Tore Wenzel-Larsen for the fix).
  • Hide line labels for Inf values.
  • Fix baseline centre line in G charts (when using freeze argument).
  • Fix error when x.period argument is NULL (thanks to lenakba).

qicharts2 0.5.1

  • Fix missing target line.
  • Use exact values for control chart constants A3, B3, and B4 (thanks to Tore Wenzel-Larsen).
  • Add x.period argument specifying interval cut points for aggregating y values by week, month, etc. (thanks to pwildenhain)
  • P charts default to percentage on Y axis (thanks to pwildehain).
  • Add qic.linecol, qic.signalcol, and qic.targetcol to options to allow for custom colours.
  • Add qic.clshade to options to allow for choosing between lines and shaded area for control limits.
  • Fix typos in vignette (thanks to rmadillo).
  • Add source to cabg and gtt datasets.

qicharts2 0.4.0

  • Fix quoted variables.
  • Darker CL background.
  • Add point.size argument.
  • Improved notes and parts labels.

qicharts2 0.3.0

  • Skip more tests that generate noLD issues on CRAN.
  • Allow NULL as title argument to suppress chart title.
  • Add strip.horizontal argument to qic().

qicharts2 0.2.3

  • Skip tests that generate noLD issues on CRAN.

qicharts2 0.2.2

  • Fix time zone warnings on Windows environment.

qicharts2 0.2.1

  • Fix x axis error when dates crosses summer/winter time.

qicharts2 0.2.0

  • Import dplyr >= 0.7.0
  • Fix calculation of control limits for xbar chart in qic() with freeze or exclude argument.
  • C chart ignores agg.fun argument.

qicharts2 0.1.1

  • First release.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("qicharts2")

0.6.0 by Jacob Anhoej, 9 months ago


https://github.com/anhoej/qicharts2


Browse source code at https://github.com/cran/qicharts2


Authors: Jacob Anhoej [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports dplyr, ggplot2, scales, stats

Suggests knitr, rmarkdown, testthat, tidyr


See at CRAN