Skip to content
Back to formatted view

Raw Message

Message-ID: <200212251205.NAA19295@pubhealth.ku.dk>
Date: 2002-12-25T13:05:02Z
From: olefc@birc.dk
Subject: inv.logit (package boot) (PR#2394)

Full_Name: Ole Christensen
Version: 1.6.1
OS: linux-gnu

Submission from: (NULL) (130.225.18.176)


In package boot :

> inv.logit(800)
[1] NaN

where it should have been 1.


The problem is caused by exp(x) returning Inf when x is large.

One way of fixing the problem [there may be better ways] would be to include the
line 

out[x > 709] <- 1

in inv.logit()



Cheers Ole




> version
         _
platform i686-pc-linux-gnu
arch     i686
os       linux-gnu
system   i686, linux-gnu
status
major    1
minor    6.1
year     2002
month    11
day      01
language R