[R] nls minFactor and constraints [was (no subject)]
Spencer Graves
spencer.graves at pdf.com
Thu Aug 28 19:27:27 CEST 2003
In my experience, transformations of the type Doug just described has
often made sums of squares (or log(likelihood)) contours more parabolic,
thereby increasing the accuracy of the simple normal approximations to
the distributions of parameter estimates. It is wise to check these
things, as it is not always true.
hope this helps. spencer graves
Douglas Bates wrote:
> 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
>>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.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list