OCASNZ4S: This function creates a data frame containing three columns...

Description Usage Arguments Value Note Author(s) Examples

View source: R/OCASNZ4S.R

Description

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

Usage

1
OCASNZ4S(plan,pd)

Arguments

plan

plan is a data frame with two rows containing sample no's=n,acceptance no's=c, and rejection no's=r for first and second 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

1
2
3
4
5
plans<-data.frame(n=c(200),c=c(7),r=c(8))
Pnc<-seq(0,.08,.005)
OCASNS<-OCASNZ4S(plans,Pnc)
OCASNS$OC
OCASNS$ASN

AQLSchemes documentation built on May 5, 2020, 3:01 a.m.