data_gen: data_gen

Description Usage Arguments Value

View source: R/data_gen.R

Description

A function that generate discrete data set.

Usage

1
2
3
4
5
6
7
8
9
data_gen(
  graph,
  n,
  ivn = NULL,
  n_levels = NULL,
  params = NULL,
  FUN = NULL,
  flip = TRUE
)

Arguments

graph

a edgeList object.

n

size of the data set, a scalar

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.

Value

data matrix


gujyjean/discretecdAlgorithm documentation built on March 15, 2020, 7:32 p.m.