Returns the best-fit parameters for a given nonlinear parameter bounds and nonlinear functions.
get_best_params(
dat,
form,
functions,
nlparam,
lp,
lp_bounds = NULL,
lhs_var,
N = 10,
silent = TRUE,
parallel = FALSE
)A list containing the strings for the nonlinear functions of the formula.
Data frame with the data points to be fitted.
A formula given in the form "LHS ~ a1 * F_1(x,p1) + a2 * F_2(x,p2) + ... + an F_n(x,pn)"
A string array with the nonlinear functions as obtained with get_functions functions.
A list with the names of the nonlinear parameters and their lower and upper bounds in the form c(lower,upper).
A string array with the names of the linear parameters contained in the formula as obtained with get_parameters function
An optional list with the bounding restrictions over the linear parameters.
The name of the left-hand-side of the formula
Size of the partition of the nonlinear parameters. Defaults to 10.
Logical. If TRUE (default) supresses any warnings regarding the collinearity of the columns of the matrix in the determination of the best linear parameters.
Logical. If TRUE then multicore parallelization of for loops is done with the parallel package. Defaults to FALSE.
This is an internal function called from nls_tac function. It is not intended for direct use.