A function that generate discrete data set.
data_gen(
graph,
n,
ivn = NULL,
n_levels = NULL,
params = NULL,
FUN = NULL,
flip = TRUE
)a edgeList object.
size of the data set, a scalar
a list of intervention for each data point.
a list of number of levels for each node, default is binary data set.
coefficient list (optional).
a function to generate magnitude of influence (optional).
a bool parameter. If true, when generating coefficients, will randomly flip the sign of coefficients.
data matrix