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