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 #24874 is a reply to message #24775] Mon, 23 April 2001 13:46 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Bruce Bowler <bbowler@bigelow.org> writes:
> 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.

I agree, I was a little surprised that the REGRESS docs didn't mention
LINFIT, since LINFIT is the degenerate case of one dimension.

> 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.

Umm, here I think I have to disagree. The SIGMA keyword provides the
errors of the coefficients, as my example showed. The R^2 constant is
directly from CORRELATE, so I'm not sure your complaint here. And
finally,

YFIT = A*X + B

Sometimes things are simple enough that having a canned procedure to
do them is overkill. :-)

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[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:01:56 PDT 2025

Total time taken to generate the page: 0.00413 seconds