giovanni caggiano <[EMAIL PROTECTED]> 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
> 0.000976563
> 
> 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,
> 1/1024=0.000976563. 
> 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
nls.

> 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
this.

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to