Mastering SPC charts
What is Statistical Process Control?
Preface
What Sets This Book Apart?
Prerequisites
How to Use This Book
About the Authors
Synopsis
Introduction
Part 1: Understanding Variation
Part 2: Constructing SPC Charts with R
Part 3: Case Studies and Worked Examples
Part 4: Advanced SPC Techniques
Part 5: Best Practices and Tips
Part 6: Conclusion and Final Thoughts
Appendices
Part 1: Understanding Variation
1
Understanding Variation
1.1
SPC and the nature of variation
2
Understanding SPC Charts
2.1
Anatomy and physiology of SPC charts
2.2
Why 3-sigma limits?
2.3
Some common types of control charts: The Magnificent Seven
2.3.1
Counts
2.3.2
Measurements
2.4
Summary of common SPC charts
3
Looking for Signals on SPC charts – Beyond the 3-Sigma Rule
3.1
Patterns of non-random variation in time series data
3.1.1
Freaks
3.1.2
Shifts
3.1.3
Trends
3.1.4
Other unusual patterns
3.2
SPC rules
3.2.1
Tests based on sigma limits
3.2.2
Runs analysis – tests based on the distribution of data points around the centre line
3.3
SPC charts without borders – using run charts
3.4
A practical approach to SPC analysis
3.5
SPC rules in summary
4
Using SPC in healthcare
4.1
Using SPC to monitor a process
4.2
Using SPC to improve a process
4.3
Successful use of SPC in healthcare
Part 2: Constructing SPC Charts
5
Your First SPC Charts With Base R
5.1
A run chart of blood pressure data
5.2
Adding control limits to produce a control chart
5.3
That’s all, Folks!
6
Calculating Control Limits
6.1
Introducing the spc() function
6.2
Formulas for calculation of control limits
6.3
Count data
6.3.1
C chart
6.3.2
U chart
6.3.3
P chart
6.4
Measurement data
6.4.1
I chart (aka X chart)
6.4.2
MR chart
6.4.3
X-bar chart
6.4.4
S chart
6.5
Control limits in short
Control chart constants
7
Highlighting Freaks, Shifts, and Trends
7.1
Introducing the cdiff data set
7.2
Improved
spc()
function
7.3
Highlighting special cause variation in short
R function for runs analysis
8
Core R Functions to Construct SPC Charts
8.1
Examples
8.1.1
Run chart
8.1.2
I and MR charts for individual measurements
8.1.3
X-bar and S charts for averages and standard deviations of measurements
8.1.4
C and U charts for counts and rates
8.1.5
P chart for percentages
8.2
TODO
8.3
Further up, further in
R function library
9
SPC Charts with ggplot2
9.1
Creating an SPC object for later plotting
9.2
Making a new plot function based on ggplot2
9.3
Customising the plotting theme
9.4
Preparing for qicharts2
10
Introducing qicharts2
10.1
A simple run chart
10.2
A simple control chart
10.3
Excluding data points from analysis
10.4
Freezing baseline period
10.5
Splitting chart by period
10.6
Small multiple plots for multivariate data
10.6.1
To aggregate or not to aggregate
10.7
qicharts2 in short
Part 3: Case Studies and Worked Examples
11
Case 1:
Part 4: Advanced SPC Techniques
12
Screened I Chart – eliminating freak moving ranges before calculating limits
13
SPC Charts for Rare Events
13.1
Introducing the birth dataset
13.2
G charts for opportunities between cases
13.3
T charts for time between events
13.4
The Bernoulli CUSUM chart for binary data
14
Prime Charts for Count Data with Very Large Subgroups
14.1
Laney’s prime chart
14.2
When to use prime charts
Example data for P prime charts
Part 5: Best Practices, Controversies, and Tips
15
Tips for Effective SPC Implementation
Part 6: Conclusion and Final Thoughts
Appendices
A
Data Sets
Bacteremia
Blood pressure
Clostridioides difficile infections
Ceasearian section delay
Emergency admission mortality
On-time CT
Radiation doses
Robson group 1 births
B
Basic Statistical Concepts
C
Two types of errors when using SPC
C.1
Quantifying the diagnostic error of SPC charts
C.1.1
Average run length
C.1.2
Likelihood ratios
C.2
Conclusion: Keeping the balance
D
Notes on R
D.1
Data structures and classes
D.2
Plot-ready data frames
D.3
Importing data from text files
D.4
Manipulating data frames
D.4.1
Adding variables to data frames
D.4.2
Aggregating data frames
D.5
Tips and tricks
D.5.1
Cutting dates and datetimes
D.5.2
Getting age from date of birth
D.5.3
Naming files and variables
E
Critical Values for Longest Runs and Number of Crossings
F
Resources and Further Readings
References
Published with bookdown
Mastering Statistical Process Control Charts in Healthcare
F
Resources and Further Readings
books
websites
communities
R packages