View source: R/make_settings.R
make_settings | R Documentation |
make_settings
makes a list of settings for a given purpose
make_settings(
n_x,
purpose = "index",
Region,
fine_scale = TRUE,
strata.limits = data.frame(STRATA = "All_areas"),
zone = NA,
FieldConfig,
RhoConfig,
OverdispersionConfig,
ObsModel,
bias.correct,
Options,
use_anisotropy,
vars_to_correct,
Version,
treat_nonencounter_as_zero,
n_categories,
VamConfig,
max_cells,
knot_method,
mesh_package
)
n_x |
the number of vertices in the SPDE mesh (determines the spatial resolution when |
purpose |
character indicating what purpose is intended for the model, and therefore what default settings are perhaps appropriate. Many of these have examples at the VAST wiki https://github.com/James-Thorson-NOAA/VAST/wiki. Only currently implemented for:
|
Region |
a character vector, where each element is matched against potential values to create the extrapolation grid, where densities are then predicted at the midpoint of each grid cell when calculating derived quantities or visualizing model outputs. Users will typically supply a single character-string, representing the footprint of a single survey. However, it is also possible to provide a character-vector, where the extrapolation-grid will be created for each string, and then combined together; this is then helpful when extrapolating densities across multiple survey domains. Current options are:
|
fine_scale |
a Boolean indicating whether to ignore ( |
strata.limits |
an input for determining stratification of indices (see example script) |
zone |
UTM zone used for projecting Lat-Lon to km distances; use |
FieldConfig |
See Details section of |
RhoConfig |
vector of form
If missing, the default is to assume a value of zero for each element (i.e., |
OverdispersionConfig |
a vector of format |
bias.correct |
Boolean indicating whether to do epsilon bias-correction;
see |
Options |
a tagged-vector that is empty by default
|
use_anisotropy |
Boolean indicating whether to estimate two additional parameters representing geometric anisotropy |
vars_to_correct |
a character-vector listing which parameters to include for bias-correction, as passed to |
Version |
Which CPP version to use. If missing, defaults to latest version
using |
treat_nonencounter_as_zero |
Boolean indicating whether to treat any year-category combination as having zero biomass when generating abundance indices and resulting compositional estimates |
n_categories |
number of categories in a multivariate model (only necessary to specify given some values for |
VamConfig |
Options to estimate interactions, containing three slots:
|
max_cells |
Maximum number of extrapolation-grid cells. If number of cells in extrapolation-grid is less than this number, then its value is ignored. Default |
knot_method |
whether to determine location of GMRF vertices based on the location of samples
|
This function assembles a default set of user-decisions for a specified modelling purpose. The default settings are guessed based on generic guidance, and should be carefully reviewed for real-world purposes. If the user supplies values for individual settings e.g. FieldConfig
, then these values override the defaults that are provided by interpreting purpose
Tagged list containing default settings for a given purpose, use names
on output to see or modify list of settings.
For discussion of some of these options see https://doi.org/10.1016/j.fishres.2018.10.013
VAST
for general documentation, make_settings
for generic settings, fit_model
for model fitting, and plot_results
for generic plots
Other wrapper functions:
fit_model()
,
plot_results()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.