randAdjmtx: A function to generate random adjacency matrix

Description Usage Arguments

View source: R/randAdjmtx.R

Description

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.

Usage

1
randAdjmtx(nvars, maxNPa, adjList = NULL)

Arguments

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.


kelvinyangli/mbmml documentation built on June 29, 2020, 3:12 a.m.