Description Usage Arguments Details Value Author(s) See Also Examples

In a DAG, CPDAG, MAG or PAG determine which nodes are (possible) descendants of x on definite status or just any paths potentially avoiding given nodes on the paths.

1 2 |

`m` |
Adjacency matrix in coding according to type. |

`x` |
Node positions of starting nodes. |

`y` |
Node positions of nodes through which a path must not go. |

`possible` |
If |

`ds` |
If |

`type` |
Type of adjacency matrix in |

Not all possible combinations of the arguments are currently implemented and will issue an error if called.

Vector of all node positions found as (possible) descendents of the nodes in `x`

.

Markus Kalisch

1 2 3 4 5 6 7 8 | ```
## a -> b -- c
amat <- matrix(c(0,1,0, 0,0,1, 0,1,0), 3,3)
colnames(amat) <- rownames(amat) <- letters[1:3]
plot(as(t(amat), "graphNEL"))
possDe(m = amat, x = 1, possible = TRUE, ds = FALSE, type = "pdag") ## all nodes
possDe(m = amat, x = 1, possible = FALSE, ds = FALSE, type = "pdag") ## only nodes 1 and 2
possDe(m = amat, x = 1, y = 2, possible = TRUE, ds = FALSE, type = "pdag") ## only node 1
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.