Description Usage Arguments Value
Fits a VAST model, compatible with VAST v8_3_0 through 16/12/2019 Some of the descriptions come from JT VAST package descriptions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | fit.vast(
Data_Geostat,
RunDir,
SaveDir,
save.output = FALSE,
Q_ik = NULL,
vf.re = FALSE,
FieldConfig = c(Omega1 = 1, Epsilon1 = 1, Omega2 = 1, Epsilon2 = 1),
RhoConfig = c(Beta1 = 0, Beta2 = 0, Epsilon1 = 0, Epsilon2 = 0),
ObsModel_ez = c(1, 3),
fine_scale = TRUE,
input.grid.res = 1,
crop.extrap.by.data = TRUE,
knot_method = "grid",
n_x = 100,
Version = "VAST_v8_3_0",
Method = "Mesh",
ADREPORT = TRUE,
normalize_idx = FALSE,
Xconfig_zcp = NULL,
slim.output = FALSE,
strata.sp,
enviro,
n_xLOC,
newton_steps = 3,
n.boot = 250
)
|
Data_Geostat |
A data-frame of i rows containing the following columns: Response_variable, Year, Lon, Lat, Spp, AreaSwept_km2, Vessel |
RunDir |
Path to the directory where the .cpp VAST source code is stored or compiled |
SaveDir |
Path to the directory where the outputs will be saved |
save.output |
TRUE or FALSE |
Q_ik |
Matrix or i rows and k covariates impacting catchability. Can be created using |
vf.re |
TRUE or FALSE switch indicating if vessel random effects are to be estimated. If so then the Vessel column in Data_Geostat is used |
FieldConfig |
Controls the number of factors estimated with the spatial and spatiotemporal random fields. default setting = c(Omega1 = 1, Epsilon1 = 1, Omega2 = 1, Epsilon2 = 1) |
RhoConfig |
Controls the temporal structure of the annual intercepts and the spatiotemporal random field. default setting = c(Beta1 = 0, Beta2 = 0, Epsilon1 = 0, Epsilon2 = 0) |
ObsModel_ez |
Controls the error structure. default setting = c(1,3)
|
fine_scale |
TRUE or FALSE. Better maps and slightly better index fit when TRUE but is slower. |
input.grid.res |
Resolution of extrapolation grid in kilometers. |
crop.extrap.by.data |
TRUE or FALSE: If TRUE then the extrapolation grid is cropped by the smooth hull surrounding the data |
knot_method |
knot_method whether to determine location of GMRF vertices based on the location of samples |
n_x |
Number of knots |
Version |
Version of VAST to use. Compatible with version "VAST_v8_3_0" |
Method |
Method to use for defining spatial field. default setting = "Mesh" |
ADREPORT |
TRUE or FALSE. Calculate the SD for the params and index? |
normalize_idx |
TRUE or FALSE. Normalize the index (and the SE) by dividing by the mean of the index |
Xconfig_zcp |
OPTIONAL, 3D array of settings for each dynamic density covariate, where the first dimension corresponds to 1st or 2nd linear predictors, second dimension corresponds to model category, and third dimension corresponds to each density covariate
|
slim.output |
TRUE or FALSE, if true then vast_output only contains idx and/or idx.se, fit.time, mgc |
strata.sp |
[Optional] If present, a shapefile containing the strata boundaries to calculate the indicies for |
enviro |
[Optional] If present, a named-list of length two is required: "formula" is a character string that can be coerced to a formula using |
n_xLOC |
[Optional] If present, these are the locations used to define the spatial mesh. This is defined as a matrix with two columns 'Lon' and 'Lat' giving the locations for the knots. |
newton_steps |
An integer value (default is 3), the number of newton steps to take after optimization. Leads to a better mgc but is slow. Setting this to zero turns off this feature. |
n.boot |
If greater than zero (default is 250), this is the number of replicates to draw from a parametric bootstrap to generate new data from which to calculate DHARMa residuals. |
Named list "vast_output"
the index within each strata if strata is provided
the associated se for the index
the diagnostics from the model run
the objects estimated and calculated by VAST
the report generated by ADREPORT
the data passed to TMB and used to fit the model
the extrapolation list
the time to run the function
the map details to make additional plots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.