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