Learn R Programming

MARSS (version 3.2)

checkMARSSInputs: Check inputs to MARSS call

Description

This is a helper function to check the inputs to a MARSS() call for any errors

Usage

checkMARSSInputs( MARSS.inputs, silent=FALSE )

Arguments

MARSS.inputs
A list comprised of the needed inputs to a MARSS call: data, inits, MCbounds, model, miss.value, control, method, form)
silent
Suppresses printing of progress bars, error messages, warnings and convergence information.

Value

  • If the function does not stop due to errors, it returns an updated list with elements
  • dataData supplied by user.
  • modelNot changed. Will be updated by the MARSS.form function (e.g. MARSS.marxss).
  • initsA list specifying initial values for parameters to be used at iteration 1 in iterative maximum-likelihood algorithms.
  • MCboundsA list of the bounds for the Monte Carlo initialization routine.
  • miss.valueSpecifies missing value representation.
  • methodThe method used for estimation.
  • formThe equation form used to convert wrapper object to a marssm model object.
  • controlSee Arguments.

Details

This is a helper function to check that all the inputs to a MARSS call are properly specified. If arguments inits, MCbounds, or control are not provided by the user, they will be set by the alldefaults[[method]] object specified in MARSSsettings. Argument model specifies the model structure using a list of matrices; see MARSS or the User Guide for instructions on how to specify model structure. If model is left off, then the function MARSS.form() is used to determine the default model structure.

See Also

MARSS marssm checkModelList as.marssm