make_model | R Documentation |
make_model
builds a tagged list with everything necessary to run or interpret inputs to a VAST model
make_model(
TmbData,
Version,
RhoConfig = c(Beta1 = 0, Beta2 = 0, Epsilon1 = 0, Epsilon2 = 0),
Method = "Mesh",
Npool = 0,
ConvergeTol = 1,
Use_REML = FALSE,
loc_x = NULL,
Parameters = "generate",
Random = "generate",
Map = "generate",
DiagnosticDir = NULL,
TmbDir = system.file("executables", package = "VAST"),
RunDir = getwd(),
CompileDir = TmbDir,
build_model = TRUE,
framework = "TMBad",
intern = FALSE,
inner.control = list(sparse = TRUE, lowrank = TRUE, trace = FALSE),
supernodal = FALSE,
flags = ""
)
TmbData |
a tagged list of data inputs generated by |
Version |
Which CPP version to use. If missing, defaults to latest version
using |
RhoConfig |
vector of form
If missing, the default is to assume a value of zero for each element (i.e., |
Method |
Spatial method used for estimation (determines bounds for logkappa) |
Npool |
A user-level interface to pool hyperparameters for multiple categories.
For categories with few encounters, these hyperparameters are poorly informed
leading to converge difficulties. A value |
ConvergeTol |
Integer specifying override for TMB convergence criteria (OPTIONAL) |
Use_REML |
boolean whether to use maximum marginal likelihood or restricted maximum likelihood (termed "REML") (OPTIONAL) |
loc_x |
location for each sample used to generate plausible bounds for scale parameter (OPTIONAL) |
Parameters |
a tagged list of starting parameters (OPTIONAL) |
Random |
a character vector of random effects (OPTIONAL) |
Map |
a tagged list of parameters to either mirror or turn off, using standard TMB interface.
This input is useful, e.g., to build a model without estimating parameters, extracting Map
from the list of outputs, modifying it manually, and then passing it explicitly, |
DiagnosticDir |
a directory where diagonstic runtime information should be stored (OPTIONAL) |
TmbDir |
a directory where the CPP file for the VAST model can be found locally (OPTIONAL) |
RunDir |
a directory where model results are written; by default uses the working directory (OPTIONAL) |
CompileDir |
a directory where the CPP file is copied, copiled, and run
(must have write privileges or else the function will crash); by default uses |
build_model |
Boolean indicating whether to build the model, |
framework |
Which AD framework to use ('TMBad' or 'CppAD') |
intern |
Do Laplace approximation on C++ side ? See details (Experimental - may change without notice) |
inner.control |
List controlling inner optimization. |
supernodal |
Turn on preprocessor flag to use supernodal sparse Cholesky/Inverse from system wide suitesparse library |
flags |
Character with compile flags. |
Object of class make_model
, containing objects for running a VAST model
The built TMB object
A vector of upper bounds for parameters, optionally for use during optimization
A vector of lower bounds for parameters, optionally for use during optimization
A tagged list of parameter starting values used when building Obj, which can be extracted, modified, and then put back into make_model
to define different starting values
A tagged list of parameters to be turned off or mirrored, for similar use as Parameters
A character vector of random effects, for similar use as Parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.