Learn R Programming

discretecdAlgorithm (version 0.0.7)

coef_gen: coef_gen

Description

coefficient generating function

Usage

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