Fit primary growth models
Fits a primary growth model to data obtained under static environmental conditions.
fit_isothermal_growth( fit_data, model_name, starting_point, known_pars, ..., check = TRUE, formula = logN ~ time )
fit_data |
Tibble of data for the fit. It must have two columns, one with
the elapsed time ( |
model_name |
Character defining the primary growth model |
starting_point |
Named vector of initial values for the model parameters. |
known_pars |
Named vector of known model parameters (not fitted). |
... |
Additional arguments passed to |
check |
Whether to do some basic checks (TRUE by default). |
formula |
an object of class "formula" describing the x and y variables.
|
An instance of FitIsoGrowth
.
## Some dummy data library(tibble) my_data <- tibble(time = c(0, 25, 50, 75, 100), logN = c(2, 2.5, 7, 8, 8)) ## Choose the model my_model <- "Baranyi" ## Initial values for the model parameters start = c(logNmax = 8, lambda = 25, logN0 = 2) ## Any model parameter can be fixed known <- c(mu = .2) ## Now, we can call the function static_fit <- fit_isothermal_growth(my_data, my_model, start, known) summary(static_fit) ## We can plot the fitted model against the observations plot(static_fit)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.