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

posted by d_labes  – Berlin, Germany, 2014-03-12 09:59 (4138 d 19:43 ago) – Posting: # 12603
Views: 10,359

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,430 posts in 4,931 threads, 1,675 registered users;
79 visitors (0 registered, 79 guests [including 13 identified bots]).
Forum time: 06:42 CEST (Europe/Vienna)

It has yet to be proven
that intelligence has any survival value.    Arthur C. Clarke

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