OCASNZ4M {AQLSchemes}R Documentation

This function creates a data frame containing three columns 1)proportion defective=pd, 2)OC=prob accept, and 3)ASN=average sample no.

Description

This function takes the data frame=plan created by the AAZ14Multiple function and and a vector of proportion defectives=pd. It calculates OC and ASN values and creates a data frame.

Usage

OCASNZ4M(plan,pd)

Arguments

plan

plan is a data frame with seven rows containing sample no's=n,acceptance no's=c, and rejection no's=r for first through seventh samples

pd

pd is a vector of values of the poprtion defective to b used in the OC ASN Curves

Value

returns a data frame containing three columns 1)proportion defective=pd, 2)OC=prob accept, and 3)ASN=average sample no.

Note

This function calls the function AAZ14Double to get the specifications and recall and print the plan.

Author(s)

John S. Lawson lawson@byu.edu

Examples

planm<-data.frame(n=c(50,50,50,50,50,50,50),c=c(0,1,3,5,7,10,13),r=c(4,6,8,10,11,12,14))
Pnc<-seq(0,.08,.005)
OCASNM<-OCASNZ4M(planm,Pnc)
OCASNM$OC
OCASNM$ASN

[Package AQLSchemes version 1.7-2 Index]