.. _pcalg_randdag: pcalg_randdag ----------------- .. rubric:: randDAG .. list-table:: * - Package - `pcalg `__ * - Version - 2.7-3 * - Language - `R `__ * - Docs - `here `__ * - Paper - :footcite:t:`JSSv047i11` * - Graph type - `DAG `__, `UG `__ * - Docker - `bpimages/bidag:2.1.4 `__ * - Module - `pcalg_randdag `__ .. rubric:: Description This is the *randDAG* from the R package `pcalg `_ with the extra feature that the maximum average number of parents can be set by ``max_parents``. An object of the pcalg_randdag module specifies a graph generated using the randDAG function from the pcalg package, with the extra functionality of restricting the maximal number of parents per node (max_parents). It samples a random graph with n nodes and d neighbours per node on average, using the algorithm specified by method with parameters par1 and par2, for further details see :footcite:t:`JSSv047i11`. .. Source `resources/binarydatagen/generate_DAG.R `_ .. See `JSON schema `_ .. rubric:: Example .. code-block:: json [ { "id": "avneigs4", "max_parents": 5, "n": 80, "d": 4, "par1": null, "par2": null, "method": "er", "DAG": true } ] .. footbibliography::