View source: R/Module_fitModel.R
fitModel | R Documentation |
This function applies the estimation step for the various models. It sets up the data inputs (e.g. loop through age classes, ) and calls the estimation subroutine then stores the output in a list object. Model-specific sub-routines live in the file "Module_Sub_EstimationFunctions.R".
fitModel( model = c("Naive", "ReturnRate", "Mechanistic", "SibRegSimple", "SibRegKalman", "SibRegLogPower", "SibRegPooledSimple", "TimeSeriesArima", "TimeSeriesExpSmooth"), data = NULL, data.sibreg = NULL, settings = NULL, tracing = FALSE )
model |
A character vector of length one. The name of a model, it has to match one of the model names in the "estimation.functions" list objects. which is generated from the script R/Module_Sub_EstimationFunctions.R. |
data |
Same as the data element from the list object generated by prepData() |
data.sibreg |
Same as the sibling regression input element *sibreg.in* from the list object generated by prepData() |
settings |
A list. Model-specific list of settings, where applicable. |
tracing |
A Boolean. Default is FALSE. |
FOR NOW: JUST MAKING THIS WORK WITH THE BASIC SIBLING REGRESSION AND KALMAN FILTER SIBLING REGRESSION
A list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.