Function for calculating residuals of dynamic predictions under
different conditions for the same model parameters according
to the requirements of modFit
.
get_multi_dyna_residuals(this_p, experiment_data, known_pars, sec_model_names)
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 the environmental conditions and values the secondary model (see secondary_model_data).
an instance of modCost
.