Allows you to specify a formula with parameters, along
with starting guesses for the parameters. Refines those
guesses to find the least-squares fit.
Usage
nlsModel(formula, data, ..., options)
Arguments
formula
formula specifying the model
data
dataframe containing the data to be used
...
named initial values for parameters
options
not yet used
Value
a function
Details
Fits a nonlinear least squares model to data. In
contrast to linear models, all the parameters (including
linear ones) need to be named in the formula. The
function returned simply contains the formula together
with pre-assigned arguments setting the parameter value.
Variables used in the fitting (as opposed to parameters)
are unassigned arguments to the returned function.