SplitMatchProbability: Probability of matching this well
Description
(Ln)SplitMatchProbability()calculates the probability that two random
splits of the sizes provided will be at least as similar as the two
specified.
Usage
SplitMatchProbability(split1, split2)
LnSplitMatchProbability(split1, split2)
Value
SplitMatchProbability() returns a numeric giving the proportion
of permissible non-trivial splits that divide the terminals into bipartitions
of the sizes given, that match as well as split1 and split2 do.
LnSplitMatchProbability() returns the natural logarithm of the
probability.
Arguments
split1, split2
Logical vectors listing terminals in same order, such that
each terminal is identified as a member of the ingroup (TRUE) or outgroup
(FALSE) of the respective bipartition split.