Skip to content
Prev 8646 / 63421 Next

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 :
[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
_
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