Description Usage Arguments Value Author(s) See Also Examples

After simulating a random topological order first (the order can also be prespecified), the algorithm connects two nodes with the porbability probConnect.

1 |

`p` |
number of nodes. |

`probConnect` |
probability of connecting two nodes, determines the sparsity of the graph. Choosing probConnect = 2/(p-1), for example, leads to an expected number of p nodes. |

`causalOrder` |
OPTIONAL: causal or topological order of the nodes. If not provided, the topological order is chosen randomly. |

p x p adjacency matrix that describes a directed acyclic graph (DAG) with p nodes. The entry (i,j) equals one if and only if there is an edge from i to j.

Jonas Peters <[email protected]>

1 | ```
randomDAG(p = 5, probConnect = 0.6)
``` |

SID documentation built on May 30, 2017, 4:04 a.m.

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.