[R] nls minFactor and constraints [was (no subject)]
bates at stat.wisc.edu
Thu Aug 28 19:04:45 CEST 2003
giovanni caggiano <gcaggiano at yahoo.com> writes:
> A couple of questions about the nls package.
> 1. I'm trying to run a nonlinear least squares
> regression but the routine gives me the following
> error message:
> step factor 0.000488281 reduced below `minFactor' of
> even though I previously wrote the following command:
> nls.control(minFactor = 1/4096), which should set the
> minFactor to a lower level than the default one,
> Is there any way of setting the new minfactor to a
> lower level?
You need to set control=nls.control(minFactor=1/4096) in the call to
> 2. Is it possible to set some constraints upon the
> parameters to be estimated in a nls regression?
Other than by parameter transformation, no. See section 3.4.1 of
Bates and Watts (1988), "Nonlinear Regression Analysis and Its
Applications", Wiley to see how to use parameter transformations for
More information about the R-help