View source: R/make_spatial_info.R
make_spatial_info | R Documentation |
make_spatial_info
builds a tagged list with all the spatial information needed for Data_Fn
make_spatial_info(
n_x,
Lon_i,
Lat_i,
Extrapolation_List,
knot_method = NULL,
Method = "Mesh",
anisotropic_mesh = NULL,
Kmeans = NULL,
grid_size_km = 50,
grid_size_LL = 1,
fine_scale = FALSE,
Network_sz_LL = NULL,
iter.max = 1000,
randomseed = 1,
nstart = 100,
DirPath = getwd(),
Save_Results = FALSE,
LON_intensity,
LAT_intensity,
backwards_compatible_kmeans = FALSE,
mesh_package = "INLA",
...
)
n_x |
the number of vertices in the SPDE mesh (determines the spatial resolution when |
Lon_i |
Numeric vector, providing longitude for each sample |
Lat_i |
Numeric vector, providing latitude for each sample |
Extrapolation_List |
the output from |
knot_method |
whether to determine location of GMRF vertices based on the location of samples
|
Method |
a string specifying the form of spatial smoother with the following possible options:
|
anisotropic_mesh |
OPTIONAL, anisotropic mesh (if missing, its recalculated from loc_x) |
grid_size_km |
the distance between grid cells for the 2D AR1 grid (determines spatial resolution when |
grid_size_LL |
the distance between grid cells for the 2D AR1 grid (determines spatial resolution when |
fine_scale |
a Boolean indicating whether to ignore ( |
Network_sz_LL |
data frame with variables |
iter.max |
the number of iterations used per k-means algorithm (default=1000) |
randomseed |
a random number seed |
nstart |
the number of times that the k-means algorithm is run while searching for the best solution (default=100) |
DirPath |
a directory where the function looks for a previously-saved output (default is working directory) |
Save_Results |
a boolean stating whether to save the output (Default=TRUE) |
backwards_compatible_kmeans |
a boolean stating how to deal with changes in the kmeans algorithm implemented in R version 3.6.0,
where |
... |
additional arguments passed to |
fine_scale=TRUE
is a new feature starting in V8.0.0 which triggers two major changes:
projecting Gaussian Markov random fields from knots to sampling and extrapolation-grid locations using bilinear interpolation (i.e., piecewise linear smoothing), and
including density covariates individually for extrapolation-grid and sampling locations.
fine_scale=FALSE
is designed to be backwards compatible with earlier versions,
although V8.0.0 may also require changes to input naming conventions for covariates to specify the same model and attain the same fit.
LON_intensity
and LAT_intensity
allow users to specify locations that are used by the k-means algorithm to determine the location of knots, where e.g. users can either hard-code the desired knot locations via these inputs (using n_x
greater than this number of locations), or use the extrapolation-grid to ensure that knots are located proportional to that grid.
Tagged list containing objects for running a VAST model
A tagged list with inputs related to the SPDE mesh
A tagged list with inputs related to the 2D AR1 grid
A data frame with areas for each knot and each strattum
A data frame with the converted UTM coordinates for each sample
Output from make_kmeans
with knots for a triangulated mesh
The knot associated with each sample
The Method input (for archival purposes)
The UTM location for each knot
James Thorson, Merrill Rudd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.