compare_robustness {robber} | R Documentation |
Compare the robustness for different LBM parameters
Description
This function is designed to be used with a list of parameters
as the one given by the function get_lbm_param()
. The default
parameters are designed such that the return value for a uniform extinction
sequence is bounded above by 0.5.
Usage
compare_robustness(
list_param,
dens = 0.0156,
new_nr = 100,
new_nc = 100,
ext_seq = "uniform"
)
Arguments
list_param |
A list of list of LBM parameters, each list must contain at
list |
dens |
The density (connectance) used to compare the network. The
|
new_nr |
The number of rows of the normalized networks. Default to 100. |
new_nc |
The number of columns of the normalized networks. Default to 100. |
ext_seq |
The distribution of the primary extinction sequence used to
compare the networks. One of |
Value
A list of the sames length as list_param
, the robustness (AUC)
after normalization for all set of parameters.
Examples
par1 <- list(con = matrix(c(.5,.3,.3,.1), 2, 2),
pi = c(.25,.75),
rho = c(1/3, 2/3))
par2 <- list(con = matrix(c(.4,.1,.1,.4), 2, 2),
pi = c(.25,.75),
rho = c(1/2, 1/2))
compare_robustness(list_param = list(par1, par2), ext_seq = "decreasing")
compare_robustness(list_param = list(par1, par2), ext_seq = "increasing")