randomDAG: Generate DAG at Random

Description Usage Arguments

View source: R/dagitty.r

Description

Generates a random DAG with N variables called x1,...,xN. For each pair of variables xi,xj with i<j, an edge i->j will be present with probability p.

Usage

1
randomDAG(N, p)

Arguments

N

desired number of variables.

p

connectivity parameter, a number between 0 and 1.


dagitty documentation built on Jan. 21, 2021, 5:07 p.m.