Calibration of P-values for calibration and for deviation of a subpopulation from the full population