Question

In: Statistics and Probability

Write a R code. This question requires you to obtain FOUR different types of multivariate control...

Write a R code.

This question requires you to obtain FOUR different types of multivariate control charts for two datasets of your choice and interpret the results.

#Statistical Quality Control

Solutions

Expert Solution

SOLUTION:

X bar and R chart

library(qcc) #is the program to read the file in R
data=file.choose() #the code is used to choose a file from your system
data=read.csv(data) #tye a data in a excel sheet and save as a csv format
names(data)
pistonring=data[,-1] #the variable -1 denotes the last value of the table

#.....X Bar Chart.......#
qcc(pistonring,type="xbar",nsigma=3)

#.....R Chart........#
qcc(pistonring,type="R",nsigma=3)

#.........S-CHART.......#

library(qcc)
data=file.choose()
data=read.csv(data)
names(data)
pistonring=data[,-1]

#......S Bar Chart.......#
qcc(pistonring,type="S",nsigma=3)


ex.42
#.........X-Bar And S-CHART ......#
library(qcc)
data=file.choose()
data=read.csv(data)
names(data)
transactiontime=data[,-1]

#....X Bar Chart.......#
qcc(transactiontime,type="xbar",nsigma=3)

#....S Bar Chart.......#
qcc(transactiontime,type="S",nsigma=3)

library(qcc)


#..........np Chart...........#
defectives=c(33,37,21,39,18,20,35,41,33,37,25,41,24,30,31,19,35,27,15,19)
samplesize=rep(100,20)
ceramic=data.frame(defectives,samplesize)
qcc(ceramic$defectives,sizes=ceramic$samplesize,type="np")
#................................#

library(qcc)
#..........np Chart...........#
defectives=c(425,430,216,341,225,322,280,306,337,305,356,402,216,264,126,409,193,326,280,389,451,420)
samplesize=rep(2000,22)
rubberbelt=data.frame(defectives,samplesize)
qcc(rubberbelt$defectives,sizes=rubberbelt$samplesize,type="np")
#................................#

library(qcc)
#............U chart.........#
defects=c(6,4,8,10,9,12,16,2,3,10,9,15,8,10,8,2,7,1,7,13)
samplesize=c(rep(50,20))
circuit=data.frame(defects,samplesize)
qcc(circuit[,1],size=circuit[,2],type="u",title="u chart for circuit board defects")


library(qcc)
#............c chart.........#
defects=c(6,4,8,10,9,12,16,2,3,10,9,15,8,10,8,2,7,1,7,13)
samplesize=c(rep(50,20))
circuit=data.frame(defects,samplesize)
qcc(circuit[,1],size=circuit[,2],type="c",title="c chart for circuit board defects")

Try the given coding coding in R console. And you can get a different types of charts. Here i given some data in the coding for understanding purpose. Use excel sheets type some data and store in a csv format and do in a r console as i discribed in a x bar and r chart.


:


Related Solutions

THIS QUESTION REQUIRES THE USE OF R STUDIO. ANY ANSWERS GIVEN THAT ARE NOT IN R...
THIS QUESTION REQUIRES THE USE OF R STUDIO. ANY ANSWERS GIVEN THAT ARE NOT IN R STUDIO CODE WILL NOT SUFFICE. SOLVING WITHOUT THE USE OF R STUDIO IS NOT ACCEPTABLE. The previous question was: Annual salaries for a large company are approximately normally distributed with a mean of 49000 dollars and a standard deviation of 2000 dollars. One manager claims that all of his direct reports are paid "above the 75th percentile" for the company. What is the minimum...
Write a code snippet for the following:   You need to control the maximum number of people...
Write a code snippet for the following:   You need to control the maximum number of people who can be in a   restaurant at any given time. A group cannot enter the restaurant if they   would make the number of people exceed 100 occupants. Use random numbers   between 1 and 20 to simulate groups arriving to the restaurant. After each   random number, display the size of the group trying to enter and the number   of current occupants. As soon as the...
explain adjusting entry and the four different types of adjustments. choose which of the four types...
explain adjusting entry and the four different types of adjustments. choose which of the four types of adjustments would be appropriately chosen for a major retail company? insurance company? food company? explain.
The market sells four different types of perfumes. The manager reports that the four different perfumes...
The market sells four different types of perfumes. The manager reports that the four different perfumes are equally popular. Suppose that a sample of 100 purchases yields observed counts 30, 24, 22, and 24, for types 1, 2, 3, and 4 respectively. Use a 0.10 significance level to test the claim that the four types are equally popular. (a) Identify the appropriate hypothesis test and explain the reasons why it is appropriate for analyzing this data. (b) Identify the null...
There are five different types of control methods that managers can utilize to maintain control. These...
There are five different types of control methods that managers can utilize to maintain control. These are bureaucratic, concertive, objective, normative and self-control (self-management). Please compare and contrast the different types of control methods. Please describe which method you think is the most effective and which one is the least effective. Which method would you prefer to use as a manager? Does this differ from which method you would like to work under as an employee?
Write code in R for this questions,, will vote!! Load the Taxi.txt data set into R....
Write code in R for this questions,, will vote!! Load the Taxi.txt data set into R. (a) Calculate the mean, median, standard deviation, 30th percentile, and 65th percentile for Mileage and TripTime. (b) Make a frequency table for PaymentProvider that includes a Sum column. Report the resulting table. (c) Make a contingency table comparing PaymentType and Airport. Report the resulting table. (d) Use the cor() function to find the correlation between each pair of the Meter, Tip, Mileage, and TripTime...
in R To explore the characteristics of a Type I error rate, write the R code...
in R To explore the characteristics of a Type I error rate, write the R code to do the following: (a) Generate 30 values from X~N(μX =10,σX=4) and 30 values from Y~N(μY =10,σY=4). Do not print any of these values. Use a t-test to test the hypotheses given above. (You are allowed to use the built-in R function to perform the t-test.) (b) Include a comment in your code that identifies the p-value and clearly state the conclusion of the...
Write guidelines on how to prepare the four different types of technical documents. Your guidelines should...
Write guidelines on how to prepare the four different types of technical documents. Your guidelines should be clear, concise, applicable to any country dealing with Covid-19 - press release - travel guidelines - testing information - prevention and treatment
Write a 300-400 word paper responding to the following: Define and describe four different types of...
Write a 300-400 word paper responding to the following: Define and describe four different types of risks that apply to personal financial situation. What actions might you take to avoid or mitigate these risks?
Question Set 1. Samsung is considering different R&D paths for the upcoming year’s release. The four...
Question Set 1. Samsung is considering different R&D paths for the upcoming year’s release. The four strategies (along with changing nothing) under consideration are: Decrease Depth: Decrease the depth of the phones without affecting other specs More Battery Power: Increase battery capacity of phones by 6% Mixed: Combine above two strategies somehow No Change: Do not change anything, buyers seem content                              The outcomes of the possible strategies (in millions of dollars) depend on how the competitors behave. Samsung considers...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT