settle.rand: settle.rand

Description Usage Arguments Value

View source: R/nullmodel.R

Description

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.

Usage

1
settle.rand(n.individ, hab.mat, A.coef, ...)

Arguments

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.

Value

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.


syanco/checkyourself documentation built on Jan. 18, 2021, 4:50 a.m.