MathGroup Archive 2012

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

Search the Archive

Re: LinearModelFit doesn't work with constraints?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126274] Re: LinearModelFit doesn't work with constraints?
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Sat, 28 Apr 2012 05:26:30 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

On 4/27/12 at 6:49 AM, mheaney at gmail.com (Michael B. Heaney) wrote:

>Why does this fit work with FindFit but not with LinearModelFit? Can
>it be fixed to work with LinearModelFit?:

>lmf = LinearModelFit[data, {a + b*x, {a < 0, b< 0}}, {a, b}, {x}]

Look at the documentation for LinearModelFit. The syntax is not
the same as for FindFit. You've attempted to use FindFit syntax
which is the problem.




  • Prev by Date: Peak Finding
  • Next by Date: Visualizations of homeomorphism of a square
  • Previous by thread: Re: LinearModelFit doesn't work with constraints?
  • Next by thread: Transcendental functions