Description Usage Arguments Value
This function randomly generate a DAG based on the specified structure details. Not all pairs of variables are connected in the resulting DAG, especially for small number of maxNPas.
1 | randDag(nvars, maxNPas)
|
nvars |
The desired number of varaibles. |
maxNPa |
The desired maximum number of parents, with minimum 0 parent. |
The output of this function is a DAG in the bnlearn format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.