check_secondary_pars: Basic checks of secondary parameters

Description Usage Arguments

View source: R/metainfo_secondary.R

Description

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.

Usage

1
2
3
4
5
6
check_secondary_pars(
  starting_point,
  known_pars,
  sec_model_names,
  primary_pars = "mu_opt"
)

Arguments

starting_point

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'.

known_pars

Named vector of fixed model parameters. Must be named using the same convention as starting_point.

sec_model_names

Named character vector defining the secondary model for each environmental factor.

primary_pars

Character vector with the parameter names of the primary model.


biogrowth documentation built on June 22, 2021, 5:07 p.m.