calc_baranyi_fit_lag: calc_baranyi_fit_lag

View source: R/milags_functions.R

calc_baranyi_fit_lagR Documentation

calc_baranyi_fit_lag

Description

Calculates lag based on fitting baranyi model to data

Usage

calc_baranyi_fit_lag(
  data,
  n0,
  init_lag = NULL,
  init_gr_rate = NULL,
  algorithm = "auto",
  max_iter = 100
)

Arguments

data

a data frame with two required columns names: "time" and "biomass",and one optional column: "curve_id" This is data from may come from multiple growth curves

n0

a data frame describing initial biomass for each of the curves, i.e. it has two obligatory columns: "curve_id", "N0"

init_lag

initial value for the lag parameter, defaults to NULL in which case it will be approximated based on the data

init_gr_rate

initial value for the growth rate, defaults to NULL in which case it will be approximated based on the data

algorithm

eg. "auto", "Levenberg-Marquardt", "port", defaults to "auto"

max_iter

Maximum number of iterations, defaults to 100

Value

growth curve data with additional columns ('lag', and predicted biomass 'predicted')


miLAG documentation built on April 3, 2025, 8:09 p.m.