I have this assignment to do and I am unsure as to what is the problem here, if there is any. Attached are the images of the plots generated on Rstudio.
I did the following script:
library(qcc)
## Control Charts
#Phase 1
View(Amostra_Procon)
require(qcc)
attach(Amostra_Procon)
windows()
qcc(Amostra_Procon$NaoAtendidas[Trial], sizes=Size[Trial], type="p")
qcc(Amostra_Procon$NaoAtendidas[Trial], sizes=Size[Trial], type="p", newdata=NaoAtendidas[!Trial], newsizes=Size[!Trial])
#Phase2
qcc(Amostra_Procon$NaoAtendidas[Trial], sizes=Size[Trial], type="p", newdata=NaoAtendidas[!Trial], newsizes=Size[!Trial])
The result of the phase one is the calibration data. And the result of the phase 2, is the newdata. Here is a picture of the calibration and the newdata:
The thing is that my calibration data is a straight line, and that's not what I expected, because the data is not uniform like that. Or am I interpreting these wrong? Could someone help me interpret these, please?
I ask because thats not how I see it working for that rstudios' orangejuice sample. And my table has thousands of lines, so it doesnt make sense.
Anyway. Thank you
I am doing the control charts (p-chart) of a data base and all of my variables are qualitative.