Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: NonLInearFit Complaining about Confidence Levels

  • To: mathgroup at
  • Subject: [mg46210] Re: [mg46193] NonLInearFit Complaining about Confidence Levels
  • From: "Sseziwa Mukasa,,(978) 536-2359" <mukasa at>
  • Date: Thu, 12 Feb 2004 07:15:40 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

On Feb 10, 2004, at 12:06 AM, Ignacy Sawicki wrote:

> Hi,
> I am trying to write a routing which does a lot of Gaussian fitting on 
> a
> dataset. For this purpose I am calling the NonlinearRegress routing as
> follows:
> bf1=NonlinearRegress[fitdata,gaussian[A,x1,xc,w],
>     x1,{{A,peak[[1]]},{xc,peak[[2]]},{w,
>         peak[[3]]}},{ConfidenceLevel\[Rule]0.9,Weights\[Rule]weights,
>       RegressionReport\[Rule]BestFitParameters}]
> and the routine complains with the following:
> NonlinearRegress::bdcl: Warning: Value of option ConfidenceLevel -> 
> {0.9}
> is not a number between 0 and 1. Setting to 0.95`.
> I was not supplying a CL parameter at all at the beginning, with the 
> same
> result. Fortunately, the whole thing runs and completes, so it doesn't
> matter for anything but aestetic reasons.
> I'm new to the whole shebang. An easy explanation of how to fix this 
> would
> be very gratefully received.

The options do not need to be specified in a list use:

bf1 = NonlinearRegress[fitdata, gaussian[A, x1, xc, w], x1,

    {{A, peak[[1]]}, {xc, peak[[2]]}, {w, peak[[3]]}}, ConfidenceLevel 
-> 0.9,

    Weights -> weights, RegressionReport -> BestFitParameters]



  • Prev by Date: Re: Help with Nitegrate
  • Next by Date: A new webMathematica application, called BiokmodWeb
  • Previous by thread: NonLInearFit Complaining about Confidence Levels
  • Next by thread: MultipleListPlot