get_multi_dyna_residuals {biogrowth}R Documentation

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,
  logbase_mu = logbase_logN,
  logbase_logN = 10
)

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 of the environmental conditions and values of the secondary model (see secondary_model_data).

logbase_mu

Base of the logarithm the growth rate is referred to. By default, the same as logbase_logN. See vignette about units for details.

logbase_logN

Base of the logarithm for the population size. By default, 10 (i.e. log10). See vignette about units for details.

Value

an instance of modCost.


[Package biogrowth version 1.0.3 Index]