errors in robust_linefit [message #92263] |
Fri, 06 November 2015 04:42  |
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 #92273 is a reply to message #92272] |
Mon, 09 November 2015 08:26  |
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
|
|
|