This function calculates R1 and R2 for the CrossMST test.
Usage
getR1R2(E,treated.index)
Arguments
E
A matrix with the number of rows the number of edges in the MST and 2 columns. Each row records the subject indices of the two ends of an edge in the MST.