null_model {ILSM}R Documentation

Null model of multilayer network

Description

The null model could be generated according to different matrix scrambling algorithms for interconnection patterns in the multilayer network

Usage

null_model(
  network,
  number = NULL,
  null_type = c("subnetwork1", "subnetwork2", "all", "Savue")
)

Arguments

network

A multilayer(tripartite) network of 'igraph' class. The network contains three groups of species and interactions within layers without interactions between each group of species.

number

A numeric value. The number of null model. Default to NULL representing number 1.

null_type

Logical. Four matrix scrambling algorithms. If null_type = NULL, default to "all".

Details

null_type

network

About a network of type "igraph", It can be obtained from the connection matrices of subnetworks by the function igraph_from_matrices

Value

Return a list contains one or more elements. Each element represent a null model of multilayer network.

References

Vázquez, D. P., C. J. Melian, N. M. Williams, N. Blüthgen, B. R. Krasnov, and R. Poulin. 2007. Species abundance and asymmetric interaction strength in ecological networks. Oikos 116: 1120-1127.

Sauve, A. M., Thébault, E., Pocock, M. J., & Fontaine, C. (2016). How plants connect pollination and herbivory networks and their contribution to community stability. Ecology, 97(4), 908-917.

Examples


set.seed(12)
d <- build_net(11,22,21,0.2)

set.seed(123)
null_model(d)
set.seed(123)
null_model(d,null_type="subnetwork1")
set.seed(123)
null_model(d,null_type="Savue")
set.seed(123)
null_model(d,number=2,null_type="Savue")

[Package ILSM version 1.0.3.1 Index]