EPn {AQLSchemes} | R Documentation |
This function calulates the estimated proprtion non-conforming.
Description
This function calulates the estimated proprtion non-conforming with sigma unknown or known using the standardized distribution.
Usage
EPn(sample,sided,stype,LSL,USL,sigma,xbar,s,n)
Arguments
sample |
sample is a numeric vector of sampled values. |
sided |
sided is 'one' or 'two' depending on whether there is one or two specification limits. The default is 'one'. |
stype |
stype is 'known' or 'unknown' depending on whether the standard deviation is known. The default is 'unknown'. |
LSL |
LSL is the lower spoecification limit, leave it out if there is no lower specification limit. |
USL |
USL is the upper spoecification limit, leave it out if there is no upper specification limit. |
sigma |
sigma is the known standard deviation, leave it out if it is unknown an stype is 'unknown'. |
xbar |
sample mean. Leave it out if the vector sample is supplied. |
s |
sample standard deviation. Leave it out if the vector sample is supplied. |
n |
number of items in the sample. Leave it out if the vector sample is supplied. |
Value
returns a single number (the estimated proportion nonconforming)
Author(s)
John S. Lawson lawson@byu.edu
Examples
EPn(sided="one",stype="known",LSL=100,sigma=8,xbar=110,n=10)
EPn(sided="one",stype="unknown",LSL=225,xbar=255,s=15,n=42)
sample<-c(197,188,184,205,201)
EPn(sample,sided="one",USL=209)
sample<-c(197,188,184,205,201)
EPn(sample,sided="two",LSL=180,USL=209)
EPn(sided="two",stype="known",sigma=2,LSL=90,USL=100,xbar=96.68,n=21)