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

Home » Public Forums » archive » errors in robust_linefit
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
errors in robust_linefit [message #92263] Fri, 06 November 2015 04:42 Go to next message
tflagana is currently offline  tflagana
Messages: 2
Registered: November 2015
Junior Member
Hi all,

I am using the IDL procedure "robust_linefit" and I was wondering how to obtain the error bars in the coefficient vector (I just get A and B but I also need errA and errB. Is there a more appropriate routine to use ?

Thanks in advance,
Tatiana
Re: errors in robust_linefit [message #92264 is a reply to message #92263] Fri, 06 November 2015 04:54 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Use the coef_sig parameter. --Wayne

On Friday, November 6, 2015 at 7:42:16 AM UTC-5, tfla...@gmail.com wrote:
> Hi all,
>
> I am using the IDL procedure "robust_linefit" and I was wondering how to obtain the error bars in the coefficient vector (I just get A and B but I also need errA and errB. Is there a more appropriate routine to use ?
>
> Thanks in advance,
> Tatiana
Re: errors in robust_linefit [message #92272 is a reply to message #92264] Mon, 09 November 2015 07:38 Go to previous messageGo to next message
tflagana is currently offline  tflagana
Messages: 2
Registered: November 2015
Junior Member
I guess that the coef_sig gives the error in the Yfit values....at least that's what I've got.
Re: errors in robust_linefit [message #92273 is a reply to message #92272] Mon, 09 November 2015 08:26 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Monday, November 9, 2015 at 10:38:58 AM UTC-5, tfla...@gmail.com wrote:
> I guess that the coef_sig gives the error in the Yfit values....at least that's what I've got.

No the coef_sig parameter gives the error in the coefficients. Check the documentation
http://idlastro.gsfc.nasa.gov/ftp/pro/robust/robust_linefit. pro

IDL> x = findgen(10)
IDL> y = x + randomn(seed,10)*0.25
IDL> coeff = robust_linefit(x,y,yfit,sig,coef_sig)
IDL> print,coeff,coef_sig
-0.188812 1.02746
0.0756120 0.0212272
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Custom X Aix with Barplot
Next Topic: lambda function syntax

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

Current Time: Wed Oct 08 07:22:56 PDT 2025

Total time taken to generate the page: 0.44964 seconds