| .fitter_curve | R Documentation |
The function .fitter_curve is used internally to find the parameters requested.
.fitter_curve(
data,
id,
fn,
method,
lower,
upper,
control,
metadata,
trace,
fn_str
)
data |
A nested data.frame with columns <plot, genotype, row, range, data, initials, fx_params>. |
id |
An optional vector of IDs to filter the data. Default is |
fn |
A function to be used for the curve fitting. Default is |
method |
A character vector specifying the optimization methods to be used. See |
lower |
Numeric vector specifying the lower bounds for the parameters. Default is |
upper |
Numeric vector specifying the upper bounds for the parameters. Default is |
control |
A list of control parameters to be passed to the optimization function. For example, |
trace |
If |
fn_str |
A string specifying the name of the function to be used for the curve fitting. Default is |
A list containing the following elements:
kkoptopm object.
paramData frame with best solution parameters.
rrData frame with all methods tested.
detailsAdditional details of the best solution.
hessianHessian matrix.
typeData frame describing the type of coefficient (estimable of fixed)
convConvergency.
pNumber of parameters estimated.
n_obsNumber of observations.
uidUnique identifier.
fn_nameName of the curve-fitting function used.
library(flexFitR)
data(dt_potato)
mod_1 <- dt_potato |>
modeler(
x = DAP,
y = GLI,
grp = Plot,
fn = "fn_lin_pl_lin",
parameters = c(t1 = 38.7, t2 = 62, t3 = 90, k = 0.32, beta = -0.01),
subset = 195,
options = list(add_zero = TRUE)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.