is.nonTransitive: Checks truth value of non-transitive sets of dice.

Description Usage Arguments Value See Also Examples

View source: R/nonTransitive.R

Description

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.

Usage

1

Arguments

df

A data.frame containing the set of dice to be checked.

prob

The non-transitive probability according to which to check for non-transitivity. If unspecified, the function checks for general non-transitivity.

Value

A logical value: TRUE or FALSE.

See Also

See also nonTransitive.generator.

Examples

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)

Example output

[1] TRUE

Rdice documentation built on May 2, 2019, 3:46 a.m.