Computes (and caches on the model) the conditional effects — the local
derivatives of each demographic process (growth, mortality, regeneration)
with respect to its inputs, per process and per species. This is the shared
primitive behind ALE(), averageConditionalEffects() and the analytical
variable importance in summary.finn_class().
Usage
conditionalEffects(
model,
env = NULL,
init_cohort = NULL,
env_autoscale = TRUE,
sim_seed = 42L
)Arguments
- model
(
finn_class)
fitted model.- env
(
data.table|data.frame|NULL)
env covariates;NULLuses the cached training env.- init_cohort
(
CohortMat|NULL)
initial cohort;NULLuses the cached training init_cohort.- env_autoscale
(
logical(1))
seeALE().- sim_seed
(
integer(1))
seed for the state-harvesting simulation (seeALE()).