Description Usage Arguments Value See Also Examples
View source: R/nonTransitive.R
Checks whether a given set of dice is non-transitive with given probability. If no probability is given, checks whether a given set of dice is generally non-transitive.
1 | is.nonTransitive(df, prob)
|
df |
A |
prob |
The non-transitive probability according to which to check for non-transitivity. If unspecified, the function checks for general non-transitivity. |
A logical value: TRUE or FALSE.
See also nonTransitive.generator
.
1 2 3 4 5 6 7 8 | df <- data.frame(
die1 = c(5,4,6,15),
die2 = c(3,6,16,2),
die3 = c(0,2,14,15),
die4 = c(8,10,1,9)
)
is.nonTransitive(df, prob = 9/16)
|
[1] TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.