Re: [R] Numerical precision problem

2007-12-21 Thread dlakelan
[EMAIL PROTECTED] wrote: > Dear All, > >> (1-p)==1 > > [1] TRUE > > The main problem I have is that I need to evaluate the inverse of the normal > Cumulative Distribution Function near 1 (but not exactly 1) and the PC cannot > recognize it. Evaluate it at 1, evaluate the density at 1, an

Re: [R] Numerical precision problem

2007-12-21 Thread Thomas Lumley
On Fri, 21 Dec 2007, [EMAIL PROTECTED] wrote: > Dear All, > > > > I have a numerical problem: > > R, as other statistical software, can tell the difference between very > small numbers and 0, while apparently cannot distinguish a number close > to 1 and 1. In the example below, is it possible to

Re: [R] Numerical precision problem

2007-12-21 Thread Duncan Murdoch
On 21/12/2007 2:52 PM, [EMAIL PROTECTED] wrote: > Dear All, > > > > I have a numerical problem: > > R, as other statistical software, can tell the difference between very small > numbers and 0, while apparently cannot distinguish a number close to 1 and 1. > In the example below, is it possi

[R] Numerical precision problem

2007-12-21 Thread C.Rosa
Dear All, I have a numerical problem: R, as other statistical software, can tell the difference between very small numbers and 0, while apparently cannot distinguish a number close to 1 and 1. In the example below, is it possible to instruct R to recognize that q is different from 1? > p=.