Internal function to calculate the value of the kth GHC objective (possibly minus an offset)
when the kth p-value order statistic is x, for a set of size d.
Usage
GHC_objective(x, k, d, offset, pairwise_cors)
Value
The value of the kth HC objective
Arguments
x
The p-value of the kth p-value order statistic.
k
Which objective to use.
d
The size of the set.
offset
Used to zero the correct value when we put this into uniroot
pairwise_cors
A vector of all d(d-1)/2 pairwise correlations between the test
statistics, where d is total number of test statistics in the set.