View source: R/buildUBaymodel.R
setWeights | R Documentation |
Set the prior weights in a UBaymodel object.
setWeights(model, weights, block_list = NULL, block_matrix = NULL)
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 |
a UBaymodel object with updated prior weights
build.UBaymodel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.