For counts of individual prey items representing approximately independent prey-capture decisions (i.e., integer data type), it is possible to run a Monte Carlo resampling simulation to test the null hypothesis that any observed diet variation arose from individuals sampling stochastically from a shared distribution. See Araujo et al. (2011) for a discussion of the biological assumptions underlying this Monte Carlo resampling procedure. In the simulations, each individual is assigned a number of prey items equal to the number of items it was observed eating, and then prey items are randomly assigned to the individual's diet via multinomial sampling from the observed population resource distribution. Next, both \(E\) and \(C_{ws}\) are recalculated for the resulting simulated population. The program generates a specified number of such null datasets, and the observed test statistic is compared to the distribution observed under the null hypothesis.
Note that the Monte Carlo method should not be applied to non-integer diet data (e.g., total mass of each prey species, proportion of stomach volume per prey species).
There are two options for calculating the population's diet proportions (\(q_j\), the proportion of the resource j in the population's diet): sum and average. When sum is specified, one sums up all resource counts within a category across all individuals to get the population's use, then determine the proportion of each resource category in the population's repertoire:
$$ q_j = \frac{\sum_i{n_{ij}}}{\sum_{ji}{n_{ij}}}$$
The drawback of this approach is that individuals that eat large numbers of items, or larger total mass of items, will bias the population to look more like them.
The average method (average proportion) circumvents this problem by first converting individual diets into proportions \(p_{ik}\), then averaging these proportions for each resource k.
An adjusted value of E is calculated as:
$$E_{adj} = \frac{E_{obs} - E_{null}}{1 - E_{null}}$$
This rescales the value of E (i.e., the observed value \(E_{obs}\)) to range from a minimum of 0 when the observed value is equal to the mean Null value (i.e., \(E_{null}\), up to a maximum of 1 when individual specialization is strongest). This allows one to compare datasets with different mean Null values.
Version 1.1 of the package fixes the case of highly specialised individuals in the calculation of \(C_{ws}\) by removing a bug in the C code taken from Dieta1.c affecting how the weight matrix and the number of links where calculated when highly specilised individuals are present.