Design and analysis of two-phase sampling and case-control