Learn R Programming

bipartite (version 2.16)

vaznull: Null model with constrained connectance and moderately constrained marginal totals

Description

Implements Diego Vazquez proposal of a null model for pollination networks

Usage

vaznull(N, web)

Arguments

N

Number of desired null model webs.

web

An interaction matrix.

Value

A list of N randomised matrices with the same dimensions and connectivity as the initial web.

Details

This function produces a null model network with the main constraint of a connectance that is the same as in the original network. In the process of producing this null model, marginal totals will turn out to be different from the original network, less so for large, dense webs than for small, sparse webs. vaznull is our implementation of the algorithm propose by Diego Vazquez, hence its name. vaznull differs from swap.web in that marginal totals are not strictly constraint! The algorithm used as well as the null model it outputs are different.

The algorithm was described as follows: "The algorithm randomized the total number of individual interactions observed in the original interaction matrix, F. To this end, the algorithm first created a binary matrix, assigning interspecific interactions according to species-specific probabilities, requiring that each species had at least one interaction. As in Vazquez et al. (2005b), the species-specific probabilities were proportional to species' relative abundances (probabilities are in fact approximately proportional and not equal to relative abundances because of the requirement that each species receives at least one interaction; this requirement causes probabilities to deviate from relative abundances, especially for rare species). Once the number of filled cells in the original matrix was reached, the remaining interactions were distributed among the filled cells, so that connectance in the original and randomized matrices was the same." (Vazquez et al. 2007, page 1122-1123).

References

V<U+00E1>zquez, D. P., C. J. Melian, N. M. Williams, N. Bl<U+00FC>thgen, B. R. Krasnov, and R. Poulin. 2007. Species abundance and asymmetric interaction strength in ecological networks. Oikos 116: 1120-1127.

See Also

r2dtable, swap.web

Examples

Run this code
# NOT RUN {
	
# }
# NOT RUN {
		data(Safariland)
		networklevel(Safariland, index="info")
		networklevel(vaznull(1, Safariland)[[1]], index="info")
		system.time(vaznull(10, Safariland))
		system.time(swap.web(10, Safariland))
	
# }

Run the code above in your browser using DataLab