get_dyna_residuals {biogrowth} | R Documentation |

Function for calculating residuals of a dynamic prediction according
to the requirements of `modFit()`

.

```
get_dyna_residuals(
this_p,
fit_data,
env_conditions,
known_pars,
sec_model_names,
cost = NULL,
logbase_mu = logbase_logN,
logbase_logN = 10
)
```

`this_p` |
named vector of model parameters |

`fit_data` |
tibble with the data for the fit |

`env_conditions` |
tibble with the environmental conditions |

`known_pars` |
named vector of known model parameters |

`sec_model_names` |
named character vector with names the environmental conditions and values the secondary model (e.g. 'CPM'). |

`cost` |
an instance of modCost to be combined (to fit multiple models). |

`logbase_mu` |
Base of the logarithm of the growthrate. 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. |

An instance of `modCost()`

.

[Package *biogrowth* version 1.0.1 Index]