Learn R Programming

MARSS (version 3.2)

checkModelList: Check model list passed into MARSS call

Description

This is a helper function to check the model list passed in to a MARSS() call for any errors

Usage

checkModelList( model, defaults, this.form.allows)

Arguments

model
A list from which a marssm model will be constructed.
defaults
A list with the defaults for the elements in the model list in case the user leaves out any.
this.form.allows
A list of what inputs are allowed for each element in the model list.

Value

  • If the function does not stop due to errors, it returns an updated model list with missing elements filled in by the defaults.

Details

This is a helper function to check that all the model list that will be passed to a MARSS.form function to make the marssm object. If elements in the list are left off, they will be filled in by defaults.

See Also

MARSS marssm checkModelList as.marssm