OT: log(0) - NaN, NA or what [General Sta­tis­tics]

posted by d_labes  – Berlin, Germany, 2014-03-12 09:59 (4063 d 21:57 ago) – Posting: # 12603
Views: 10,134

Hi nitpickers!

Here the answers from my two statistical systems of choice.

SAS:
data null;
 x=log(0);
 run;

NOTE: Invalid argument to function LOG at line 40530 column 4.
x=. _ERROR_=1 _N_=1
NOTE: Mathematical operations could not be performed at the following places. The results of the operations have been set to missing values.
Each place is given by: (Number of times) at (Line):(Column).
  1 at 40530:4

. = missing = NA?

R:
>log(0)
[1] -Inf

Regards,

Detlew

Complete thread:

UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,667 registered users;
28 visitors (0 registered, 28 guests [including 6 identified bots]).
Forum time: 08:56 CEST (Europe/Vienna)

It is true that many scientists are not philosophically minded
and have hitherto shown much skill and ingenuity
but little wisdom.    Max Born

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5