Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #802

Re: Calculate R-squared value from gnuplot 'fit' output?

From ab <ab.3942@googlemail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Calculate R-squared value from gnuplot 'fit' output?
Date 2012-01-02 00:37 -0800
Organization http://groups.google.com
Message-ID <5a11567f-08f0-406d-becf-73dcf79c02f3@t30g2000vbx.googlegroups.com> (permalink)
References <9d8f352e-5f07-45c2-8eee-1fa5c58eeba0@f33g2000yqh.googlegroups.com> <f9c8ad34-7845-4b94-9138-c7d9a5efc6cf@d8g2000vbb.googlegroups.com>

Show all headers | View raw


>
> Why does that take 3 iterations? That is just a linear LS problem?
> Linear LS regression has an analytical solution, i.e. with normal
> equations.
> Solution should be either intelligent starting values or one iteration
> from

Hi,

You can force the fit  to converge in one iteration by using
FIT_START_LAMBDA=1.e-15
FIT_MAXITER=1
This is only suited for a linear model.

A better way is the stats command in gnuplot 4.5.
The correlation coefficient  r is calculated directly.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

Calculate R-squared value from gnuplot 'fit' output? Mike <mesimms@gmail.com> - 2011-12-28 12:14 -0800
  Re: Calculate R-squared value from gnuplot 'fit' output? Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-12-28 22:11 +0100
  Re: Calculate R-squared value from gnuplot 'fit' output? wolfgang <cmat.wolfgang@gmail.com> - 2011-12-29 00:17 -0800
    Re: Calculate R-squared value from gnuplot 'fit' output? Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-12-29 12:39 +0100
    Re: Calculate R-squared value from gnuplot 'fit' output? ab <ab.3942@googlemail.com> - 2012-01-02 00:37 -0800

csiph-web