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

Home » Public Forums » archive » Re: P value for the regression analysis?
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: P value for the regression analysis? [message #66454] Fri, 08 May 2009 08:04 Go to next message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<a7205923-ac92-414e-a0ac-1eb254681edf@t11g2000vbc.googlegroups.com>,
d.poreh@gmail.com wrote:

> I need an urgent help. How would we calculate the P value for the
> regression analysis? For fit=linfit(x,y,yfit=yfit), how we could find
> P value?
> Cheers

Send me an email (k-bowman at tamu.edu) and I'll send you a
function to calculate confidence limits for the regression
parameters.

There are many different ways to pose the question of significance
for regression, so it is important to understand what you are
doing.

Ken Bowman
Re: P value for the regression analysis? [message #66455 is a reply to message #66454] Fri, 08 May 2009 08:02 Go to previous messageGo to next message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On May 8, 9:14 am, Vince Hradil <vincehra...@gmail.com> wrote:
> On May 8, 8:15 am, David Fanning <n...@dfanning.com> wrote:
>
>
>
>> d.po...@gmail.com writes:
>>> I need an urgent help. How would we calculate the P value for the
>>> regression analysis? For fit=linfit(x,y,yfit=yfit), how we could find
>>> P value?
>
>> What is your null hypothesis for fitting a line through
>> a set of data!?
>
>> Cheers,
>
>> David
>
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting, Inc.
>> Coyote's Guide to IDL Programming:http://www.dfanning.com/
>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
> True - linear fitting is NOT regression analysis.  Here's a good place
> to start (as good as any other):http://en.wikipedia.org/wiki/Linear_regression

Oh, and
IDL> ? regress
might help, too.
Re: P value for the regression analysis? [message #66457 is a reply to message #66455] Fri, 08 May 2009 07:14 Go to previous messageGo to next message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On May 8, 8:15 am, David Fanning <n...@dfanning.com> wrote:
> d.po...@gmail.com writes:
>> I need an urgent help. How would we calculate the P value for the
>> regression analysis? For fit=linfit(x,y,yfit=yfit), how we could find
>> P value?
>
> What is your null hypothesis for fitting a line through
> a set of data!?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

True - linear fitting is NOT regression analysis. Here's a good place
to start (as good as any other): http://en.wikipedia.org/wiki/Linear_regression
Re: P value for the regression analysis? [message #66458 is a reply to message #66457] Fri, 08 May 2009 06:15 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
d.poreh@gmail.com writes:

> I need an urgent help. How would we calculate the P value for the
> regression analysis? For fit=linfit(x,y,yfit=yfit), how we could find
> P value?

What is your null hypothesis for fitting a line through
a set of data!?

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: P value for the regression analysis? [message #84997 is a reply to message #66454] Thu, 20 June 2013 21:13 Go to previous message
JP is currently offline  JP
Messages: 55
Registered: April 2008
Member
guys, looking for the p=value of a simple linear regression found this old post in the group.

Most statistical packages give by default the P-value. how do I get it from linfit or regress?

To be clear, what I want to know is the probability that the slope (in a simple linear regression like in linfit) is different than zero.

Ken, you mentioned you have a function, I'll be very glad if you can share it with me.

cheers

JP
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: trouble with map projections
Next Topic: cgErrPlot with vector color

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

Current Time: Wed Oct 08 13:39:28 PDT 2025

Total time taken to generate the page: 0.00694 seconds