Gives a numerical check that a (conditional) independence holds in a probability distribution.
checkCI(x, A, B, C = integer(0), eps = .Machine$double.eps, ...)# S3 method for array
checkCI(x, A, B, C = integer(0), eps = .Machine$double.eps, ...)
# S3 method for tables
checkCI(x, A, B, C = integer(0), eps = .Machine$double.eps, ...)
A logical, or a vector of logicals of the same length as the number of tables provided, indicating whether the conditional independence seems to hold numerically.
an array or object of class tables
the sets of variables whose independence is to be tested
conditioning set (possibly empty)
tolerance parameter
other arguments to methods
array
: method for array
object
tables
: method for tables
object
just tests to an appropriate numerical precision that a conditional independence
holds: this is *not* a statistical test for conditional independence.
If A
and B
overlap with C
then these vertices are ignored. If A
and B
intersect with one another (but not C
) then the solution is always
false.