calibrateP function

Calibrate the p-value