nestedness
, but in the interval [0,1] (0 means no nesting, 1 perfect nesting). Nestedness according to this function differs fundamentally in the way it is calculated. Roughly, it describes the observed distances between links in the network matrix, and compares that to what is possible under the given connectance.
The weighted version builds on the fact that at some point during the calculations of Corso et al.'s nestedness index the Manhattan distance is used to calculate distances between cells. Here, we can slot in a simple weight (in this case the respective dependencies) and hence weight the distance by the number of observations (or rather the dependencies).nestedness.corso(web, weighted=FALSE, reps=500)
FALSE
.shuffle.web
function to produce random, high-entropy webs, that serve to delimit the lowest possible nestedness.
Furthermore, because the real maximum chaos cannot be derived (to my knowledge) algorithmically, we use the 95% quantile of 500 randomisations as maximum. This will lead to a consistently overestimated nestedness, but it is less sensitive to the number of replicates than the max.nestedness
and discrepancy
data(Safariland)
nestedness.corso(Safariland, weighted=TRUE, reps=1000)
Run the code above in your browser using DataLab