Checks that the model names are correct, that no parameter is defined twice, that every parameter is defined and that no unknown parameter has been defined. Raises an error if any of these conditions is not met.
check_secondary_pars(
starting_point,
known_pars,
sec_model_names,
primary_pars = "mu_opt"
)
Named vector with initial values for the model parameters
to estimate from the data. The growth rate under optimum conditions must be named
mu_opt
. The rest must be called 'env_factor'+'_'+'parameter'. For instance,
the minimum pH for growth is 'pH_xmin'.
Named vector of fixed model parameters. Must be named using the
same convention as starting_point
.
Named character vector defining the secondary model for each environmental factor.
Character vector with the parameter names of the primary model.