During a confidence trial, efficacy and inferiority is determined by the level of confidence in treatment benefit.
Efficacy is declared if this confidence level exceeds a pre-specified boundary,
and inferiority is declared if this confidence levels falls below a second pre-specified valye.
Given confidence-based thresholds for efficacy and inferiority, and the
sidedness of the test, this function returns the traditional frequentist p-value.