Learn R Programming

fb4package (version 2.0.0)

validate_fitting_settings: Validate fitting settings

Description

Validates processed simulation settings before execution.

Usage

validate_fitting_settings(settings)

Value

Invisibly returns TRUE if the settings are valid. Throws an error with a descriptive message if fit_to is not one of the accepted options ("Weight", "Consumption", "Ration",

"Ration_prey", "p_value") or if fit_value is not a positive number. May also emit warnings for biologically unusual values (e.g. very low target weight, or a p_value greater than 5).

Arguments

settings

Processed simulation settings. Must be a list containing at least the elements fit_to (character) and fit_value (positive numeric).