Summarises the conditional effects into a per process x species x variable
average marginal effect: the mean local derivative (mean_effect, an
approximate linear effect). Derived cheaply from the cached conditional
effects.
Usage
averageConditionalEffects(
model,
env = NULL,
init_cohort = NULL,
env_autoscale = TRUE,
sim_seed = 42L,
env_only = TRUE
)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()).- env_only
(
logical(1))
ifTRUE(default) report only the environmental predictors of each process; ifFALSEalso include the stand-state inputs (dbh, light, growth) each process depends on.