Creating an acceptance sampling plan for attribute data