coef_gen {discretecdAlgorithm}R Documentation

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 distrubution to generate coefficients

flip,

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

Value

A list of coefficient matrix


[Package discretecdAlgorithm version 0.0.5 Index]