comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: About REGRESS.pro
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: About REGRESS.pro [message #47794] Tue, 07 March 2006 11:27 Go to next message
Daelomin is currently offline  Daelomin
Messages: 7
Registered: March 2006
Junior Member
Well I know of at least the Numerical Recipes book which has the
regression subroutine which could be tested from a Fortran program...

Is there a thread as to how one can call fortran from IDL? (I'll search
!)
Re: About REGRESS.pro [message #47795 is a reply to message #47794] Tue, 07 March 2006 10:13 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth Bowman writes:

> You could test REGRESS by giving it data for which you know the answer.

Too simple. If it was me, and I knew the answer ahead of time,
confirmation of the result wouldn't make me at all confident.
I'd just assume they were making the same damn errors I'm
making. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: About REGRESS.pro [message #47796 is a reply to message #47795] Tue, 07 March 2006 09:44 Go to previous messageGo to next message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <1141751203.052652.161560@v46g2000cwv.googlegroups.com>,
"Daelomin" <joey.pourriciel@gmail.com> wrote:

> hehehe good one
>
> Thing is, I have always been told to doubt before I have verified... ;)
>
> I tend to try and keep to this rule, neverminding the extra load of
> work... :/

You could test REGRESS by giving it data for which you know the answer.

Ken
Re: About REGRESS.pro [message #47800 is a reply to message #47796] Tue, 07 March 2006 09:06 Go to previous messageGo to next message
Daelomin is currently offline  Daelomin
Messages: 7
Registered: March 2006
Junior Member
hehehe good one

Thing is, I have always been told to doubt before I have verified... ;)

I tend to try and keep to this rule, neverminding the extra load of
work... :/
Re: About REGRESS.pro [message #47802 is a reply to message #47800] Tue, 07 March 2006 08:54 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Daelomin writes:

> I discovered the newsgroup existence from a post on David Fanning's
> website. Thanks sir!
>
> I am working on a somewhat simple multi-linear regression problem from
> brightness temperatures of a satellite to cloud liquid water.
>
> As I have started to investigate the REGRESS procedure in IDL, I just
> realized that I don't quite know its code. Is it totally kosher by
> Numerical Methods standards?
>
> Does anyone have another version that I could use to at least compare
> the validity of outputs?

You are doubting IDL's results!? You, sir, are in the entirely wrong
newsgroup. You want comp.lang.matlab. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: About REGRESS.pro [message #47877 is a reply to message #47794] Wed, 08 March 2006 04:59 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Examples are given in the external development guide, available as PDF on
your IDL CD.

Haje


"Daelomin" <joey.pourriciel@gmail.com> wrote in message
news:1141759625.468155.7310@j52g2000cwj.googlegroups.com...
> Well I know of at least the Numerical Recipes book which has the
> regression subroutine which could be tested from a Fortran program...
>
> Is there a thread as to how one can call fortran from IDL? (I'll search
> !)
>
Re: About REGRESS.pro [message #47886 is a reply to message #47795] Tue, 07 March 2006 17:53 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.1e777b4ff5bfe993989bc4@news.frii.com>,
David Fanning <davidf@dfanning.com> wrote:

> Kenneth Bowman writes:
>
>> You could test REGRESS by giving it data for which you know the answer.
>
> Too simple. If it was me, and I knew the answer ahead of time,
> confirmation of the result wouldn't make me at all confident.
> I'd just assume they were making the same damn errors I'm
> making. :-(
>
> Cheers,
>
> David

Well, here's a stochastic test. You could also try a problem with an
analytical solution.

Ken


a0 = 1.0
b0 = 0.5
eps = 0.3
n = 1000

x = RANDOMN(seed, n)
y = a0 + b0*x + eps*RANDOMN(seed, n)
b = REGRESS(x, y, CONST = a, YFIT = yfit)

PLOT, x, y, PSYM = 1
OPLOT, x, yfit, PSYM = -3

PRINT, a0, b0
PRINT, a, b
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Plot sphere and ellipsoid(oblate,prolate,triaxial) by object graphics
Next Topic: About REGRESS.pro

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:42:04 PDT 2025

Total time taken to generate the page: 0.00663 seconds