calc_lambda: Fill population matrices and calculate lambda in each cell

Description Usage Arguments Value

View source: R/fn_demography.R

Description

Create a demographic matrix for each cell and calculate lambda, incorporating dispersal.

Usage

1
calc_lambda(g.p, lc.df, sdd.ji, p.ji, method = "wt.mn")

Arguments

g.p

Named list of global parameters set with set_g_p

lc.df

Dataframe or tibble with xy coords, land cover proportions, and cell id info

sdd.ji

List with id.in for cells dispersing TO each target cell j

p.ji

List with dispersal probabilities TO each target cell j

method

"wt.mn" Method for calculating cell expectations, taking either "wt.mn" or "lm". If "wt.mn", the expectation for each parameter is the weighted mean across land cover types proportional to their coverage, with the land cover specific values stored in the parameter vectors. If "lm", the expectation is calculated in a regression with the slopes contained in each parameter vector. Individuals cannot be assigned to specific land cover categories with "lm", so "m" must be scalar.

Value

List with array of matrices, [["mx"]], and vector of lambdas for each inbound cell, [["lambda"]].


Sz-Tim/gbPopMod documentation built on Dec. 7, 2020, 1:07 p.m.