Skip to contents

Set the prior weights in a UBaymodel object.

Usage

setWeights(model, weights, block_list = NULL, block_matrix = NULL)

Arguments

model

a UBaymodel object created using build.UBaymodel

weights

the vector of user-defined prior weights for each feature

block_list

the list of feature indices for each block; only required, if block-wise weights are specified and block_matrix is NULL

block_matrix

the matrix containing affiliations of features to each block; only required, if block-wise weights are specified and block_list is NULL

Value

a UBaymodel object with updated prior weights

See also

build.UBaymodel