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

Home » Public Forums » archive » Re: Equivalent of EXCEL LINEST function?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Equivalent of EXCEL LINEST function? [message #24775] Mon, 23 April 2001 13:09 Go to previous message
Bruce Bowler is currently offline  Bruce Bowler
Messages: 128
Registered: September 1998
Senior Member
Craig Markwardt wrote:
> However using REGRESS may be like killing a fly with a shotgun, a bit
> of overkill.
>
> Why not use LINFIT and CORRELATE, which standard IDL functions?
>
> p = linfit(x,y, sigma=dp) ;; DP are parameter uncertainties
> r2 = correlate(x,y)

Jeopardy style answer...

what is "because the IDL documentation stinks?"

I wanted to regress 2 vectors so I go into the online help in 5.3 (which
is what I'm using) and type regress. Up pops the REGRESS function. No
where does the REGRESS help mention LINFIT or CORRELATE.

After "rolling my own", I find them and they do (almost) what I want.
They don't (like LINEST in excel, or "my own") provide standard errors
of the coefficents, the constant and Y estimate and a few other little
bits.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Enter SStreams' Link of the Month Contest
Next Topic: Re: fastest operations/fctns.

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

Current Time: Wed Oct 08 19:03:46 PDT 2025

Total time taken to generate the page: 0.00364 seconds