TreeTools (version 0.1.3)

SplitMatchProbability: Probability of matching this well

Description

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)

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.

Value

The proportion of permissible informative splits splitting the terminals into bipartitions of the sizes given, that match as well as split1 and split2 do.

Functions

  • LnSplitMatchProbability: The natural logarithm of the probability

Examples

Run this code
# NOT RUN {
SplitMatchProbability(split1 = as.Splits(c(rep(TRUE, 4), rep(FALSE, 4))),
                      split2 = as.Splits(c(rep(TRUE, 3), rep(FALSE, 5))))

# }

Run the code above in your browser using DataLab