How to implement Control Charts in R?


To know about the data types in R programming.

Need for Control Charts?
  • Control charts, also known asShewhart charts or process-behavior charts, are a statistical processcontrol tool used to determine ifa manufacturing or businessprocess is in a state of control.
Interpretation of Control Charts:If it is in Control:
  • If all the points lie within the control limits,the process is said to be “in control”
  • If analysis of the control chart indicatesthat the process is currentlyunder control, then no correctionsor changes to process control parametersare needed.
  • Moreover, data from the methodcan be used to predict the futureperformance of the process.
If it is not in Control:
  • If the control chart indicates thatthe process is not in control,analysis of the chart can help determinethe sources of variation, as this willresult in degradation of processperformance.
 Need of detecting Outliers:
  • Missing data are a common occurrenceand can have a significanteffecton the conclusions that canbe drawn from the data.
 Package and Function:
  • R Package : qcc
  • R Function : groups(x) -- For Groupingthe data
  • R Function : qcc(x, type=, nsigmas=,newdata= )
  • x --trainingdata
  • type = “R”,”xbar” -- Type of ControlChart
  • nsigmas -- Default value is 3, means ±3standard deviation
  • Newdata -- new sample data from the sameprocess

#Control Charts
#Loading required packages

#Grouping the data

#R Chart
obj<-qcc(dia[1:30,],type = “R”)

#X- Bar Chart
obj<-qcc(dia[1:30,], type=”xbar”)

#Changing the Values of nsigma
obj<-qcc(dia[1:30,],type=”R”,nsigmas = 1)

#Testing new Data
obj<-qcc(dia[1:30,],type = “xbar”,newdata = dia[31:40,])

Leave Comment

Your email address will not be published. Required fields are marked *

clear formSubmit