| spatial_svc | R Documentation |
Specify a spatially varying coefficient (SVC): one or more fixed-effect coefficients are allowed to vary smoothly over space, with the variation governed by a Gaussian process (NNGP or HSGP approximation).
spatial_svc(
coords,
terms = 1,
cov = c("exponential", "matern"),
nn = 15,
shared = NULL,
scale_coords = TRUE,
approx = c("nngp", "hsgp"),
m = 6,
c_boundary = 1.5,
parameterization = c("noncentered", "centered")
)
## S3 method for class 'tulpa_svc'
print(x, ...)
coords |
A formula ( |
terms |
Which coefficients vary over space. A formula, an integer vector
of design-matrix column indices, or a character vector of term names.
Default |
cov |
Covariance function. One of |
nn |
Number of nearest neighbours used in the NNGP approximation
( |
shared |
Whether the effect is shared across processes in a
multi-process model. |
scale_coords |
Logical. Standardize coordinates before fitting
(default |
approx |
Spatial approximation. |
m |
Number of basis functions per dimension for the HSGP approximation
( |
c_boundary |
Boundary-extension factor for the HSGP domain
( |
parameterization |
Latent parameterization for the exact-NUTS field
( |
x |
A |
... |
Ignored. |
A tulpa_svc object (also of class tulpa_spatial).
spatial_gp() for a spatial random effect (rather than a varying
coefficient).
# Intercept that varies smoothly over space
spatial_svc(~ lon + lat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.