Core model adapted from: "Sampling bias is a challenge [...]: lessons from a quantitative nichemodel" by Jochen Frund, Kevin S. McCann and Neal M. Williams
make_true_and_sample_web(seed = NULL, specpar = 1, n_hosts = 10,
n_wasps = 10, TargetTrueConn = 0.5, SampleObs = 1000,
abun_mean = 5, abun_sdlog = 1, traitvsnested = 0.5,
hosttrait_n = "two")Random number generator seed, if specified.
Specialisation parameter, equal to 1/sd of the normal curve that defines the consumption range
Number of focal level species (e.g. hosts, flowers)
Number of non-focal level species (e.g. parasitic wasps, pollinators)
Proportion of possible interactions to keep
Number of samples to draw
Mean abundance level (log scale).
Distributon of abundance level (SD log scale).
The relative balance between the nestedness generator and the trait-based generator
Number of trait dimensions. Default 'two', uses two traits, with one dominant. 'single' and 'multi' retained from Frund et al.
A network list containing 'obs' a matrix of observations, 'TrueWeb' a matrix of the 'true'] drawn web, and number of other properties of these networks.
Abundances are assigned by generating abundances that match a log-normal distribution (but without introducing noise)
# NOT RUN {
make_true_and_sample_web()
# }
Run the code above in your browser using DataLab