Statistical Procedures for Diagnosis Based on Binary Variables