Learn R Programming

biogrowth (version 0.2.0)

get_multi_dyna_residuals: Residuals of multiple dynamic predictions

Description

Function for calculating residuals of dynamic predictions under different conditions for the same model parameters according to the requirements of modFit.

Usage

get_multi_dyna_residuals(this_p, experiment_data, known_pars, sec_model_names)

Arguments

this_p

named vector of model parameters

experiment_data

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.

known_pars

named vector of known model parameters

sec_model_names

named character vector with names the environmental conditions and values the secondary model (see secondary_model_data).

Value

an instance of modCost.