Function for calculating residuals of dynamic predictions under
different conditions for the same model parameters according
to the requirements of FME::modFit()
.
get_multi_dyna_residuals(
this_p,
experiment_data,
known_pars,
sec_model_names,
logbase_mu = logbase_logN,
logbase_logN = 10
)
an instance of modCost
.
named vector of model parameters
a nested list with the experimental data. Each entry describes
one experiment as a list with two elements: data and conditions. data
is a tibble
with two columns: time and logN. conditions
is a tibble with one column named time
and as many additional columns as environmental factors.
named vector of known model parameters
named character vector with names of the environmental conditions and values of the secondary model (see secondary_model_data).
Base of the logarithm the growth rate is referred to. By default, the same as logbase_logN. See vignette about units for details.
Base of the logarithm for the population size. By default, 10 (i.e. log10). See vignette about units for details.