Identical: Test Identity Between Distributions

Description Usage Arguments Value

Description

Test identity between various components of two distributions, e.g. the names of the state space of the random variable, the states of the random variable, and the probabilities assigned to the states.

Usage

1
2
## S4 method for signature 'Distribution,Distribution'
Identical(x, y, names = TRUE, states = TRUE, probs = TRUE, arrange = TRUE)

Arguments

x, y

Distributions.

names

A logical. If TRUE, then the names of x and y are compared.

states

A logical. If TRUE, then the states of the random variables associated with x and y (i.e., the values of the columns other than P) are compared.

probs

A logical. If TRUE, then the probabilities assigned by x and y (i.e., the values of the column P) are compared.

arrange

A logical. If TRUE, then x and y are respectively passed to Arrange before being compared. Arranging allows for more lenient comparison between distributions that may denote the same set-theoretic information that happens to be arranged differently due to their computational implementation as data frames.

Value

A logical.


patrickreidy/distdist documentation built on May 22, 2019, 12:40 p.m.