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

Home » Public Forums » archive » Re: Regression with NaN's
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: Regression with NaN's [message #68838 is a reply to message #68835] Wed, 25 November 2009 06:50 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
If you take the logarithm of a negative number, NaN is about
as good an answer as you can hope for :)

You shouldn't really throw away your data just because it's negative,
but if you insist that you don't want those, just remove the negatives
before calling log and you'll be all set.

However, if I were the referee of your paper and you would describe
that you just throw away negative data I would be very critical of
that -
might as well take away all your data and do theory instead, no? ;)

Ciao,
Paolo


On Nov 25, 9:10 am, Dave_Poreh <d.po...@gmail.com> wrote:
> Folks
> I want to do some regression on my data. In my data there is an ALOG
> function that makes my data somewhere (which I don’t know where) as
> NaN’ss. I just want to do regression (with regress or linfit) without
> these NaN’s.
> Any help highly would be appreciated
> Cheers
[Message index]
 
Read Message
Read Message
Previous Topic: how can i insert an IDL-Widget in the Envi-window?
Next Topic: Re: GUI in IDL or PV-WAVE

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

Current Time: Fri Oct 10 07:15:11 PDT 2025

Total time taken to generate the page: 1.27888 seconds