| validate_data | R Documentation |
Before passing data to 'rtmb_model', it checks for the presence of R-specific data types (such as data.frame) and missing values, and outputs errors or warnings accordingly.
validate_data(dat_list)
dat_list |
A list of data to be passed to the model (usually containing matrices or numeric vectors). |
RTMB's automatic differentiation engine requires pure 'matrix' or 'numeric' types. If a user mistakenly passes a 'data.frame', incomprehensible errors occur during the construction of the computation graph. This function catches such issues in advance.
Returns invisible 'NULL' on success. Interrupts execution with 'stop()' or issues 'warning()' if issues are found.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.