.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)
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 string specifying the name of the 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 |
A list containing the following elements:
kkopt
opm object.
param
Data frame with best solution parameters.
rr
Data frame with all methods tested.
details
Additional details of the best solution.
hessian
Hessian matrix.
type
Data frame describing the type of coefficient (estimable of fixed)
conv
Convergency.
p
Number of parameters estimated.
n_obs
Number of observations.
uid
Unique identifier.
fn_name
Name 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.