scarabee.read.model {scaRabee} | R Documentation |
Read scaRabee Model File
Description
scarabee.read.model
is a secondary function called at each
scaRabee run. It reads and processes the data contained in the specified
model file. This function performs numerous checks to ensure that the model
file contains the expected information. scarabee.read.model
is
typically not be called directly by users.
Usage
scarabee.read.model(files = NULL,
runtype = NULL)
Arguments
files |
A list of input used for the analysis. The following elements are expected and none of them could be null:
|
runtype |
A single character string, indicating the type of run; either 'estimation', 'simulation', or 'gridsearch'. |
Value
Return a list with various levels, depending on the content of the model file and the type of run:
- name
The character string which follows the $ANALYSIS tag.
- template
A character string, indicating which scaRabee function needs to be called to evaluate the model. This level is set to 'ode.model' if the $ODE tag is detected, to 'dde.model' if the $DDE tag is detected, and to 'explicit.model' otherwise.
- derived
A character string containing the R code provided within the $DERIVED block. (Only for models defined with $ODE or $DDE).
- ic
A character string containing the R code provided within the $IC block. (Only for models defined with $ODE or $DDE).
- scale
A character string containing the R code provided within the $SCALE block. (Only for models defined with $ODE or $DDE).
- de
A character string containing the R code provided within the $ODE or $DDE block. (Only for models defined with $ODE or $DDE).
- lags
A character string containing the R code provided within the $LAGS block. (Only for models defined with $DDE).
- output
A character string containing the R code provided within the $OUTPUT block.
- var
A character string containing the R code provided within the $VARIANCE block.
- sec
A character string containing the R code provided within the $SECONDARY block.
Author(s)
Sebastien Bihorel (sb.pmlab@gmail.com)