Resources
Products & Solutions
System Requirements
Samples
Install Center
Third-Party Software Reference
Documentation
What's New in SAS
Product Index A-Z
SAS Viya
SAS 9.4
SAS 9.3 and Earlier
Papers
Focus Areas
SAS/QC 13.2 User's Guide
Example Programs (Sample Library)
Select an example
ANOM Procedure
CAPABILITY Procedure
CUSUM Procedure
FACTEX Procedure
ISHIKAWA Procedure
MACONTROL Procedure
MVPDIAGNOSE Procedure
MVPMONITOR Procedure
OPTEX Procedure
PARETO Procedure
RELIABILITY Procedure
SHEWHART Procedure
Macros for Design of Experiments
DATA Step Programs for Inspection Sampling
For tips about extracting data, see
Reading Sample Data from a URL
.
ANOM Procedure
Creating ANOM BOXCHARTS from Response Values
ANOM BOXCHARTS With Unequal Group Sizes
Creating BOXCHARTS from Group Summary Data
Saving Decision Limits Using ANOM BOXCHART
Saving Summary Statistics for Groups
Saving Decision Limits and Summary Statistics
Displaying Summary Statistics on an ANOM Chart
Formatting and Positioning the Inset on an ANOM Chart
Adding a Header and Positioning the Inset on an ANOM Chart
Positioning the Inset on an ANOM Chart Using Compass Points
Positioning the Inset Using Coordinates on an ANOM Chart
Creating ANOM p Charts from Group Counts
ANOM p Charts with Angled Axis Labels
Creating ANOM p Charts from Group Summary Data
Saving Decision Limits Using ANOM PCHART
Saving Group Proportions Using ANOM PCHART
Saving ANOM PCHART Summary Statistics and Decision Limits
Creating ANOM Charts for Rates from Group Counts
Creating ANOM Charts with Angled Axis Labels
Saving Decision Limits Using ANOM UCHART
Saving ANOM UCHART Summary Statistics and Decision Limits
Creating ANOM Charts for Means from Response Variables
ANOM Charts with Unequal Group Sizes
ANOM for a Two-Way Classification
Combined ANOM Charts for Two Factors
ANOM Charts Using LIMITS= Data Set
Combined ANOM Charts Using LIMITS= Data Set
ANOM for Cell Means in the Presence of Interaction
Creating ANOM Charts for Means from Group Summary Data
Saving Decision Limits Using ANOM Charts for Means
Saving Summary Statistics for Groups Using ANOM Charts
Saving Summary Statistics & Decision Limits Using ANOM Charts
CAPABILITY Procedure
Histogram with Superimposed Beta Curve
Fitting a Beta Curve on a Histogram
CDF Plot with Superimposed Normal Curve
Comparative Histograms with Normal Curves
Machine Study with Comparative Histogram
Two-Way Comparative Histogram
New Distribution Option for Using Colors
Assessing Process Capability With Cpm
Superimposing Fitted Curves on a Histogram
New EDF Statistics for Goodness-of-Fit Test
Comparing Goodness-of-Fit Tests
Histogram with Fitted Normal Curve
Controlling the Inset Color
Specifying Text Fonts in an Inset
User Specified Header for Insets
Specifying the Height for the Inset Text
Inset with User Specified Labels & Formats
Nonnormal Distribution Capability Indices
Normal Curve Parameter Displayed in Inset
Histograms with INSET Statement Features
Positioning the Inset
Inset for Goodness-of-Fit Statistics
Inset for Areas Under a Fitted Curve
Calculating Various Statistical Intervals
Specifying the Position of the Inset
Displaying Spec Limits in an Inset
Superimposing Kernel Density Estimates
Estimating a Three-Parameter Lognormal Curve
Three-Parameter Lognormal Distribution
Compute Cpk Based on Fitted Lognormal Curve
New Variables Available in OUTFIT= Data Set
Saving CAPABILITY Output in a Data Set
Creating P-P Plots
Interpreting P-P Plots
Lognormal Prob-Prob Plot for Nonnormal Data
Creating a Normal Probability Plot
Lognormal Prob Plot for Nonnormal Data
Creating Lognormal Probability Plots
Probability Plot with Normal Reference Line
Computing Summary Stats and Capability Indices
Creating Normal Q-Q Plots
Creating Lognormal Q-Q Plots
Creating Weibull Q-Q Plots
Normal Q-Q Plot for Nonnormal Data
Lognormal Q-Q Plots for Nonnormal Data
Q-Q Plot with Distribution Reference
Controlling the Appearance of Spec Limits
Reading Spec Limits from an Input Data Set
Displaying a Confidence Interval for Cpm
Tabulating Results for Multiple Variables
New VAXIS= Scaling Option for Histograms
Estimating a Three-Parameter Weibull Curve
Three-Parameter Weibull Distribution
Two-Parameter Weibull Q-Q Plot
Bias of Cjkp Estimator
Moments of Estimator of Cjkp
Mean Square Error of Cjkp Estimator
Bias of Estimator for Cp
Two-Sided Confidence Limits for Cp
Computing Nonstandard Capability Indices
Bias of Estimator for Cpk
LCL for Cpk (Chou et al.)
LCL for Cpk (Guirguis, Rodriguez)
Approximate Confidence Limits for Cpk
PDF of Estimator of Cpk
Moments of Estimator of Cpk
Mean Square Error of Estimator for Cpk
Lower Confidence Limits for CPL and CPU
Bias of Cpm Estimator
Approx. Two-Sided Confidence Limits for Cpm
Moments of Estimator of Cpm
Mean Square Error of Estimator for Cpm
Moments of Estimator of Cp
Mean Square Error of Estimator for Cp
Johnson System of Distributions-SU System
Johnson System of Distributions-SB System
Johnson System of Distributions-SL System
Johnson System of Distributions-Macro
Compute Cpk from Johnson SU Distribution
Compute Cpk Using Johnson SB Distribution
Compute Cpk Using Johnson SL Distribution
CUSUM Procedure
Average Run Length for Two-Sided Cusum
Cusum ARLs Using Markov Chain
Combined Shewhart-Cusum Scheme
One-Sided Cusum Scheme
One-sided Cusum Chart
Two-sided Cusum Chart with V-Mask
Saving V-Mask Parameters for Cusum Chart
Reusing V-mask Parameters for Cusum Chart
Specifying Two-Sided Cusum Parameter h
Upper and Lower One-Sided Cusum Charts
Cusum and Standard Deviation Charts
Adding Inset Statistics to a CUSUM Chart
FACTEX Procedure
Complete Two-Level Factorial Design
Complete Factorial Design With Mixed Levels
Half-Fraction Factorial Design
A Problem In Quality Improvement
Augmenting A Resolution IV Design
Mixed-Level Designs Using Pseudo-Factors
Mixed-Level Designs Using Cross-Products
Mixed-Level Design with Collapsing Factors
Constructing the L18 Orthogonal Array
Hyper-Graeco-Latin Square
Incomplete Block Design
A Completely Randomized Design
A Factorial Design with Center Points
A Fold-Over Design
A Randomized Complete Block Design
A Two-Level Design with Replication
A Mixed-Level Design Using Replication
A Res IV Design with Minimum Aberration
Replicated Blocked Design with Confounding
Complete Factorial Experiment
Resolution IV Augmented Design
Fractional Factorial Split-Plot Design
A Design for a Three-Step Process
A Strip-Split-Split-Plot Design
Two-Level Full Factorial Design
Full Factorial Design in Two Blocks
ISHIKAWA Procedure
Semiconductor Example
Tape Measure Manufacturing
Photographic Quality Example
Ishikawa / Fishbone / Cause & Effect Diagrams
Format Data Set from Parent/Child Links
Convert Menu Data Sets to Procedure Format
Photographic Quality Data
Airline data
MACONTROL Procedure
Exponentially Weighted Moving Average Chart
Specifying Standard Values for EWMA Chart
Displaying Limits Based on Asymptotic Values
EWMA Chart with Unequal Subgroup Sample Sizes
EWMA Chart with Individual Measurements
Computing Average Run Lengths for EWMA Chart
Exponentially Weighted Moving Average Chart
Exponentially Wghtd Moving Averages Table
EWMA Chart Superimposed w/ Subgroup Means
Uniformly Weighted Moving Average Chart
Standard Values for Moving Average Charts
ARLs Shown on a Moving Average Chart
Uniformly Weighted Moving Average Chart
Parameters Saved in OUTLIMITS= Data Set
Reading Parameters from LIMITS= Data Set
Moving Averages Computed from Summary Data
Estimating the Process Mean and Std Dev
Adding Inset Statistics to an EWMA Chart
MVPDIAGNOSE Procedure
Producing Paneled Contribution Plots
Phase II Analysis with MVPDIAGNOSE
MVPMODEL Procedure
Building a Principal Component Model
Using Cross Validation
Computing the Classical T-Square Statistic
MVPMONITOR Procedure
Monitoring Airline Flight Delays
Combining Data from Peer Processes
Creating Multivariate Control Charts for Phase II
Comparing Univariate and Multivariate Control Charts
Creating a Classical T-Square Chart
OPTEX Procedure
Fractional Factorial Design Using OPTEX
Factorial Design With Blocks
A Nonstandard Linear Model
Engine Mapping Problem
Constrained Mixture Experiment
An Incomplete Block Design
Bayesian Optimal Design
Balanced Incomplete Block Design
Optimal Design with Fixed Covariates
Optimal Design in Presence of Covariance
Adding Space-filling Points to a Design
Constructing a Nonstandard Design
PARETO Procedure
Basic Pareto Chart from Raw Data
Basic Pareto Chart from Frequency Data
Pareto Chart with Restricted Number of Categories
Displaying Summary Statistics on a Pareto Chart
Positioning Insets in Pareto Charts
Before & After Pareto Charts Using a BY Variable
Basic and Comparative Pareto Charts
Highlighting the "Vital Few"
Highlighting Specific Pareto Categories
Highlighting Tiles in a Comparative Pareto Chart
Ordering Rows and Columns in a Comparative Chart
Merging Columns in a Comparative Pareto Chart
Pareto Analysis Based on Cost
Alternative Pareto Charts
Customizing Inset Labels and Formatting Values
Specifying Inset Headers and Positions
Managing a Large Number of Categories
RELIABILITY Procedure
Analysis of binomial data
Mean Cumulative Function Plot
MCF Difference Plot for Braking Grids Data
MCF Plot for Defrost Control Data
Probability Plot for Engine Fan Data
Probability Plot for Insulating Fluid Data
Probability Plot for Part Cracking Data
Regression analysis with Weibull model
Relation Plot for the Insulation Data
Examples of regression models
Example 1 for PROC RELIABILITY
Example 2 for PROC RELIABILITY
Getting Started Example 1 for PROC RELIABILITY
Getting Started Example 2 for PROC RELIABILITY
Getting Started Example 3 for PROC RELIABILITY
Getting Started Example 4 for PROC RELIABILITY
Getting Started Example 5 for PROC RELIABILITY
Getting Started Example 6 for PROC RELIABILITY
Getting Started Example 7 for PROC RELIABILITY
Getting Started Example 8 for PROC RELIABILITY
Getting Started Example 9 for PROC RELIABILITY
Getting Started Example 10 for PROC RELIABILITY
Getting Started Example 11 for PROC RELIABILITY
Getting Started Example 12 for PROC RELIABILITY
SHEWHART Procedure
Autocorrelation in Process Data
Autocorrelated Process Data Trend Chart
ARL For Combined Individuals & Moving Range
ARL With Supplementary Run Rules
Using Block Variables to Stratify Data
Shewhart p Chart With Block Variables
Control Chart with Data Table
Boxchart with Summary Statistics
X-Bar Chart Superimposed with Boxplots
Boxchart for Nonnormal Data
Control Chart for the Subgroup Maximum
Using Box Charts to Compare Subgroups
Creating Various Styles of Box Charts
Notched Box-and-Whisker Plots
Varying Width Box-and-Whisker Plots
Box Chart Examples
Box Chart With Variable Width Boxes
c Chart
c Chart Examples
Tests for Special Causes Applied to c Chart
c Chart Based on Known (Standard) Value
c Chart for Varying Number of Inspection Units
Clipping Extreme Points
Displaying Multiple Sets of Control Limits
Individual Measurements Chart with Boxplot
Insets Details Examples
Insets Getting Started Examples
Individual Measurement and Moving Range Charts
IRCHART with Tests for Special Causes
Specifying Known Values for IRCHART
IRCHARTS with Margin Plots
Labeling Axes on Shewhart Charts
Median Chart Examples
X-bar Chart from Subgroup Summary Data
Median Chart Example 1
Median Chart Example 2
X-Bar & s Charts for Subgroup Summary Data
Median and Range Charts Examples
Median and Range Charts-Unequal Subgroup Sizes
Median and Range Charts-Specifying Axis Labels
X-Bar & R Charts for Multiple Variables
Multiple Components of Variation
Constructing Multi-Vari Charts
Nonnormal Process Data
np Chart Examples
np Charts-Tests for Special Causes
Specifying a Known Proportion for np Charts
np Charts with Unequal Subgroup Sample Sizes
np Charts-Specifying Control Limit Info
Plotting OC Curves for Mean Charts
OC Curve for p Chart
p Chart Examples
p Charts-Tests for Special Causes
p Charts-Specifying Std Average Proportion
p Charts with Unequal Subgroup Sample Sizes
p Charts with Revised Control Limits
Displaying Stratification in Phases
OC Curve for a p Chart
Q Charts for Individual Measurements
Q Charts for Individual Measurements
Q Charts for Process Means
Q Charts for Process Variances
Range Chart (R Chart) Examples
An R Chart with Probability Limits
Specifying Control Limit Info for R Chart
Run Sum Control Chart
Computing Average Run Lengths for s Charts
Standard Deviation Chart (s Chart) Example
s Chart with Known Standard Deviation
Short Run Control Chart (Example 1)
Short Run Control Chart (Example 2)
Short Run Process Control
Shewhart Chart With Polygon Star Display
Default and Wedge Star Displays
Radial and Spoke Star Displays
Basic Star Chart
Inner & Outer Reference Circles for Stars
Graphical Styles for Stars
Method of Standardization for Stars
s Chart for Transformed Data
Displaying Auxiliary Data with Stars
Star Charts-Specifying the Style of Stars
Standardization Method on Star Charts
Selecting Subgroups Using Switch Variables
Stratifying Data with a Classification Variable
Stratifying Data w/ Symbol Variable
Creating Multivariate Control Charts
Mean Chart-Tests for Special Causes Applied
X-Bar Chart for Data with Nonlinear Trend
Requesting Tests for Special Causes
Applying Tests with Multiple Control Limits
Applying Tests for Special Causes-R charts
Applying Tests Based on General Patterns
Customizing Tests with DATA Step Programs
T-Square Chart for Bivariate Process Data
T-Square Chart for Bivariate Data
T-Square Chart for Bivariate Data
u Chart Examples
u Chart-Applying Tests for Special Causes
u Chart-Known Expected Number of Nonconformities
u Charts-Varying Number of Inspection Units
Selecting Subgroups Using WHERE Statements
Mean (X-BAR) Chart Examples
Estimating the Process Standard Deviation
Computing Process Capability Indices
Mean and Range (X-Bar and R) Charts
Mean and Range Charts-Tests for Special Causes
X-bar and R CHARTS-Specifying Standard Values
X-bar and R Charts with Varying Sample Sizes
Mean and Standard Deviation Charts Examples
X-Bar and s Charts with Probability Limits
Reading Subgroup Summary Data
Analyzing Nonnormal Process Data
Zone control chart
Simultaneous Bonferroni Confidence Intervals
Macro for ANOM with Equal Sample Sizes
Macro for ANOM with Unequal Sample Sizes
Analysis of Means for Proportions
Macro for Multiple of Std Error for ANOM
Analysis of Means for Rate Data
Analysis of Means with Equal Sample Sizes
Analysis of Means with Unequal Sample Sizes
Boxchart for Experimental Data
Phase Chart for Process Design Changes
Capability of the Improved Process
Macros for Design of Experiments
A Chemical Reaction Study
A Plant Filtration Study
A Cake Icing Design in Blocks
Breadwrapper Stock: Response-Surface Study
Yarn Elongation: A Mixture Experiment
A Constrained Mixture Experiment
A Textile Study
Macros for Fractional Factorial Designs
Screening Design
Fractional Factorial Design With Blocks
Mixture Experiment
Response Surface Study
Power Transformations
DATA Step Programs for Inspection Sampling
Analysis of Inspection Errors in Sampling
E(N) for Curtailed Group Testing-Finite
E(N) for Curtailed Group Testing-Infinite
PC(NC) for Curtailed Group Testing-Finite
PC(NC) for Curtailed Group Testing-Infinite
PC(C) for Curtailed Group Testing-Finite
PC(C) for Curtailed Group Testing-Infinite
Distribution of Defective Items-Finite
Distribution of Defective Item-Infinite
Simple Dorfman Screening-Finite
Simple Dorfman Screening-Infinite
Two-Stage Dorfman Screening
Three-Stage Dorfman Screening
Acceptance Probabilities-Double Sampling
1PC(C)n|y for One-Stage Dorfman-Sterrett
1En|y for One-Stage Dorfman-Sterrett
1PC(NC)n|y for One-Stage Dorfman-Sterrett
2PC(C)n|y for Two-Stage Dorfman-Sterrett
2En|y for Two-Stage Dorfman-Sterrett
2PC(NC)n|y for Two-Stage Dorfman-Sterrett
Graff-Roeloffs' Modification of Dorfman
Acceptance Probabilities for Link Sampling
Acceptance Probabilities for Partial Link Sampling