BJ_func: Internal function - the BJ objective function minus the observed value, put it into uniroot to find the
test statistic magnitude bound at order statistic k of d that will give the observed BJ value.
Description
Internal function - the BJ objective function minus the observed value, put it into uniroot to find the
test statistic magnitude bound at order statistic k of d that will give the observed BJ value.