I need to calculate the cross-over point of two populations. Example
The One-way plot looks like this.
As you can see, the maximum of "A" group is larger than the minimal of the "B" group. So there is a cross-over point of measurement value where we have equal percentage of "A" and "B". It is easier to visualize if one group is "flipped" by invert its normal quantile. In the example, it is about 5.68 & -0.833.
The question is, how to calculate this point (value & probability) programmatically? I am having trouble to ID the four points around the crossover reliably.