Produces a random DAG with random sparsity with as many variables as the number of columns in the dataset dat.

random_search(dat)

Arguments

dat

Numeric matrix. Dataset matrix with n rows (observations) and p columns (variables).

Value

Square binary matrix. A random DAG.