settle.hab: settle.hab

Description Usage Arguments Value

View source: R/habprefmodel.R

Description

Repeates prob.sel for n.individ number of individuals. Completes a single model run.

Usage

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

Arguments

n.individ

The number of individuals the model should simulate. Repeats prob.sel this number of times for a single model run.

p.mat

The probability matrix passed to prob.sel. Typically the output from convert.cell

hab.mat

The matrix containing the "grown" habitats enumerated by the strength of preference (e.g., the output from pref.strength, not convert.cell).

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.