View source: R/get_bm_parameters.R
get_lbm_param | R Documentation |
Estimate the parameters of a LBM
get_lbm_param(A, model_size = NULL, ...)
A |
A matrix, the incident matrix of the network |
model_size |
A vector of size 2, the size of the model parameters.
If |
... |
Additional arguments pass to the inference function of
package |
A list of the LBM parameters. The list is set
# When the size of the model is unknown:
data("seeddispersal")
param <- get_lbm_param(seeddispersal, ncores = 1L)
do.call(auc_robustness_lbm, param)
# For a fixed number of blocks (useful for comparison)
param <- get_lbm_param(seeddispersal, model_size = c(1, 3), ncores = 1L)
do.call(auc_robustness_lbm, param)
# For data with missing observations
A <- seeddispersal
A[sample(seq_len(nrow(A)), 5),
sample(seq_len(ncol(A)), 10)] <- NA
param <- get_lbm_param(A, nbCores = 1L)
do.call(auc_robustness_lbm, param)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.