| nonlocal_terms | R Documentation |
Wrappers that mark covariates in the nonlocal_formula argument of
sdmTMB() and sdmTMB_simulate(). They are not called directly.
diffusion(x) spreads covariate x across space via an SPDE diffusion
operator with estimated scale kappaS_nl. time_lag(x) carries x forward
in time via z_t = (x_t + \kappa_T z_{t-1}) / (1 + \kappa_T) with
estimated kappaT_nl and first-order autocorrelation
\rho_T = \kappa_T / (1 + \kappa_T). When both wrap the same covariate
(~ diffusion(x) + time_lag(x)), they select one joint space-time operator
with a single transformed predictor and coefficient.
diffusion(x)
time_lag(x, start = c("stationary", "zero"))
x |
A bare covariate name found in |
start |
The transformed state before the first time slice.
|
These functions error if called outside nonlocal_formula.
sdmTMB(), plot_nonlocal_covariate(), and the
non-local covariates vignette.
# Pass as `nonlocal_formula` in sdmTMB(); see ?plot_nonlocal_covariate
nonlocal_formula <- ~ diffusion(x) + time_lag(x, start = "zero")
nonlocal_formula
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.