is.nonTransitive {Rdice}R Documentation

Checks truth value of non-transitive sets of dice.

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

is.nonTransitive(df, prob)

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

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)

[Package Rdice version 1.0.0 Index]