fit_cardinal() validates the input data, builds the nonlinear model formula,
fits it with gslnls::gsl_nls(), and returns a predmicror_fit object.
Arguments
- data
A data frame containing the environmental factor and response variables.
- model
A model name, either quoted or unquoted. See
predmicror_models().- x
Column containing the environmental factor values, either quoted or unquoted.
- response
Column containing the response values, either quoted or unquoted. Defaults to
"sqrtGR".- start
Named list of initial parameter values for the selected model.
- ...
Additional arguments passed to
gslnls::gsl_nls().
