This function randomly generate a DAG based on the specified structure details. It is the same as the randDag() function, except the generated DAG is stored in its adjacency matrix format. The adjacency matrix can be transferred into the bnlearn format DAG using the matrix2dag() function.
1 | randAdjmtx(nvars, maxNPa, adjList = NULL)
|
nvars |
The desired number of varaibles. |
maxNPa |
The desired maximum number of parents, with minimum 0 parent. |
adjList |
A list of user preferred adjacencies. The default is NULL, meaning no preferred adjacenceis. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.