coef_gen: coef_gen

Description Usage Arguments Value

View source: R/data_gen.R

Description

coefficient generating function

Usage

1
coef_gen(edge_list, n_levels = NULL, FUN = NULL, flip = TRUE)

Arguments

edge_list

a edgeList object.

n_levels,

a list of number of levels for each node.

FUN,

a probability distribution to generate coefficients

flip,

a bool parameter. If true, will randomly flip the sign of coefficients.

Value

A list of coefficient matrix


discretecdAlgorithm documentation built on March 13, 2020, 2:34 a.m.