Learn R Programming

UBayFS (version 1.0)

setWeights: Set weights in UBaymodel object

Description

Set the prior weights in a UBaymodel object.

Usage

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

Value

a UBaymodel object with updated prior weights

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

See Also

build.UBaymodel