repHab: repHab

Description Usage Arguments Value

View source: R/habprefmodel.R

Description

Generate sampling distributions from settle.hab vectorized across parameterizations. Allows settle.hab to be iterated reps number of times across multiple parameterizations of A.coef.

Usage

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

Arguments

p.mat

The probability matrix passed to prob.sel. Typically the output from 'convert.cell'. Passed to 'settle.hab'

hab.mat

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

reps

Number of model runs to simulate (each run conisting of 'n.individ' number of individuals settling)

n.individ

The number of individuals to simulate for a single model run. Passed to 'settle.hab'.

A.coef

The habitat preference parameter vector . This is the "key" that allows the function to interpret each cell of the matrix as either "Habitat A" or "Habitat B". Passed to settle.hab.

...

Additional arguments as necessary.

Value

Returns a list, each entry of which is the output of 'reps' number of iterations of 'settle.hab' (if vectorized, for a a single parameterization).


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