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

posted by d_labes  – Berlin, Germany, 2014-03-12 09:59 (4476 d 15:52 ago) – Posting: # 12603
Views: 11,649

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,653 posts in 4,991 threads, 1,570 registered users;
141 visitors (0 registered, 141 guests [including 37 identified bots]).
Forum time: 02:51 CEST (Europe/Vienna)

I have never in my life learned anything
from any man who agreed with me.    Dudley Field Malone

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