Re: [Rd] Reciprocal Mill's Ratio

2007-09-14 Thread Charles C. Berry
On Fri, 14 Sep 2007, [EMAIL PROTECTED] wrote: I believe that this may be more appropriate here in r-devel than in r-help. The normal hazard function, or reciprocal Mill's Ratio, may be obtained in R as dnorm(z)/(1 - pnorm(z)) or, better, as dnorm(z)/pnorm(-z) for small values of z. The latter f

Re: [Rd] Reciprocal Mill's Ratio

2007-09-14 Thread Simone Giannerini
Dear Murray, I think you might have to update R in first instance and provide a reproducible example in second place so that people might help you. Regards, Simone On 13/09/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I believe that this may be more appropriate here in r-devel than

[Rd] Reciprocal Mill's Ratio

2007-09-14 Thread maj
I believe that this may be more appropriate here in r-devel than in r-help. The normal hazard function, or reciprocal Mill's Ratio, may be obtained in R as dnorm(z)/(1 - pnorm(z)) or, better, as dnorm(z)/pnorm(-z) for small values of z. The latter formula breaks dowm numerically for me (running R