Learn R Programming

AccSamplingDesign (version 0.0.7)

OCdata: Generic function for OC Curve Generation

Description

Generic function to compute Operating Characteristic (OC) curve data from an acceptance sampling plan.

Usage

OCdata(plan, pd = NULL)

Value

An object of class "OCdata", a list containing:

  • pd — quality levels (e.g. proportion defective)

  • paccept — probability of acceptance at each level

  • process_means — process means, if applicable

  • dist, n, k, c — plan parameters

Arguments

plan

An object of class AttrPlan or VarPlan.

pd

Vector of quality levels (proportions of nonconforming items).

Author

Ha Truong

Details

This is a generic function. Methods are defined for objects of class AttrPlan and VarPlan, which compute the probability of acceptance across a range of quality levels (proportions of nonconforming).

See OCdata.AttrPlan and OCdata.VarPlan for details.

See Also

optPlan, manualPlan