View source: R/initial_guesses.R
make_guess_secondary | R Documentation |
Uses some heuristic rules to generate an initial guess of the model parameters
of secondary growth models that can be used for model fitting with
fit_secondary_growth()
.
make_guess_secondary(fit_data, sec_model_names)
fit_data |
Tibble with the data used for the fit. It must have
one column with the observed growth rate (named |
sec_model_names |
Named character vector defining the secondary model for each environmental factor. |
## We can use the example dataset included in the package
data("example_cardinal")
## We assign model equations to factors as usual
sec_model_names <- c(temperature = "Zwietering", pH = "fullRatkowsky")
## We can then calculate the initial guesses
make_guess_secondary(example_cardinal, sec_model_names)
## We can pass these parameters directly to fit_secondary_growth
fit_secondary_growth(example_cardinal,
make_guess_secondary(example_cardinal, sec_model_names),
c(),
sec_model_names)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.