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

Home » Public Forums » archive » LINFIT CHISQ and SIGMA values are correct??
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: LINFIT CHISQ and SIGMA values are correct?? [message #91598 is a reply to message #91593] Tue, 04 August 2015 19:19 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
You are giving linfit negative errors -- alog10(0.2) = -0.69897

If you use the absolute value of alog10(err) you will get consistent results.

But probably it is better to do your logarithmic transformation correctly

if z = alog10(y) then dz = 0.434*dy/y (I think)

where dy is your original err and dz is your transformed err .

On Tuesday, August 4, 2015 at 3:54:39 PM UTC-4, Krishnakumar M.A wrote:
> Hi,
>
> I was trying to do a linfit in the following data (I'm using IDL 6.3).
>
> ---------------------------------------------------
>
> x = [150.0, 235.0, 325.0, 410.0, 610.0]
> y = [200.0, 35.0, 8.4, 3.0, 0.6]
> err = [25.0, 5.0, 2.1, 0.8, 0.2]
>
> result = linfit(alog10(x),alog10(y),MEASURE_ERRORS=alog10(err), CHISQ=chi, COVAR=covmatrix, SIGMA=error, YFIT=fit)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: cgscatter2d.pro 'keyword parameters not allowed to call' error
Next Topic: IDL crashing on call of TV

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

Current Time: Wed Oct 08 20:09:00 PDT 2025

Total time taken to generate the page: 0.00422 seconds