Compute the asymptotic population growth rate (lambda) per species
Arguments
- mod
An
ipm_spModelobject.- pars
An
ipm_parametersobject. Must contain parameters for at least one species inmod. Lambda is computed only for species present in bothmodandpars- other species instandare used as competitors but do not appear in the output.- stand
An
ipm_standobject. Provides size distributions for all species (focal and competitors).- env
An
ipm_envobject. Climate drivers.- ctrl
An
ipm_controlobject or NULL. Onlybin_widthanddelta_timeare used. If NULL, defaults are used.
Value
An object of S3 class "ipm_lambda" - a named numeric vector
with one element per focal species (species with available parameters).
Examples
df <- data.frame(size_mm = c(150, 200, 350),
species_id = "ABIBAL",
plot_size = 1000)
s <- stand(df)
mod <- species_model(s)
pars <- parameters(mod, draw = "mean")
env <- env_condition(MAT = 8, MAP = 1200)
ctrl <- control(years = 5, compute_lambda = TRUE, progress = FALSE)
lam <- lambda(mod, pars, s, env, ctrl)
print(lam)
#> <ipm_lambda> draw=mean
#> ABIBAL: 2.0762