Description Usage Arguments Value
A convenience function that allows 'rand.sel' to be iterated across multiple individuals ('n.individ') Allows the entire ABM to be run an arbitray number of times (see 'reps' below) in order to generate a sampling distribution of apparent selections generated by the model.
1 | settle.rand(n.individ, hab.mat, A.coef, ...)
|
n.individ |
The number of individuals to simulate for a single model run. |
hab.mat |
The matrix containing the "grown" habitats enumerated by the strength of preference (e.g., the output from pref.strength, not convert.cell.) Note that which hab.mat to use (i.e., which preference strength to use) is arbitrary for the null model, but the choice must match the A.coef supplied (below). |
A.coef |
The habitat preference parameter that matches the hab.mat supplied. This is the "key" that allows the function to interpret each cell of the matrix as either "Habitat A" or "Habitat B". |
... |
Additional arguments as necessary. |
A list, the first element of which is the set of coordinates for the settled location of each individual and the 2nd element of which is the proportion of those indviduals that settled within "Habitat A". If the model is iterated, returns a list of such lists.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.