This is a helper function to check the model list passed in to a MARSS() call for any errors. Not exported.
checkModelList( model, defaults, this.form.allows)
A list from which a marssMODEL model will be constructed.
A list with the defaults for the elements in the model list in case the user leaves out any.
A list of what inputs are allowed for each element in the model list.
If the function does not stop due to errors, it returns an updated model list with missing elements filled in by the defaults.
This is a helper function to check that all the model list that will be passed to a MARSS.form
function to make the marssMODEL object. If elements in the list are left off, they will be filled in by defaults.