[Rd] inv.logit (package boot) (PR#2394)

olefc@birc.dk olefc@birc.dk
Wed Dec 25 13:05:02 2002

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

Submission from: (NULL) (

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

out[x > 709] <- 1

in inv.logit()

Cheers Ole

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