Learn R Programming

pcalg (version 2.2-0)

dreach: Compute D-SEP(x,y,G)

Description

Let x and y be two distinct vertices in a mixed graph G. This function computes D-SEP(x,y,G), which is defined as follows:

A node v is in D-SEP(x,y,G) iff v is not equal to x and there is a collider path between x and v in G such that every vertex on this path is an ancestor of x or y in G.

See p.136 of Sprirtes et al (2000) or Definition 4.1 of Maathuis and Colombo (2013).

Usage

dreach(x, y, amat, verbose = FALSE)

Arguments

x
First argument of D-SEP, given as the column number of the node in the adjacency matrix.
y
Second argument of D-SEP, given as the column number of the node in the adjacency matrix (y must be different from x).
amat
Adjacency matrix (coding 0,1,2,3 for no edge, circle, arrowhead, tail; e.g., amat[a,b] = 2 and amat[b,a] = 3 implies a -> b)
verbose
Logical specifying details should be on output

Value

  • Vector of column positions indicating the nodes in D-SEP(x,y,G).

References

P. Spirtes, C. Glymour and R. Scheines (2000) Causation, Prediction, and Search, 2nd edition, The MIT Press.

M.H. Maathuis and D. Colombo (2013). A generalized backdoor criterion. arXiv:1307.5636.

See Also

backdoor uses this function; pag2magAM.