Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-24 Thread jing hua zhao
-devel@r-project.org Subject: Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z >>>>> jing hua zhao >>>>> on Mon, 24 Jun 2019 08:51:43 + writes: > Hi All, > Thanks for all your comments which allows me to appreciate more of these in Pyt

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-24 Thread Martin Maechler
each=nrow(lxabs if(anyNA(sum.) || any(sum. <= 0)) (if(strict) stop else warning)("lssum found non-positive sums") l.off + log(sum.) } ---------- > Best wishes, > Jing Hua > ___

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-24 Thread jing hua zhao
r close? Best wishes, Jing Hua From: R-devel on behalf of Martin Maechler Sent: 24 June 2019 08:37 To: William Dunlap Cc: r-devel@r-project.org Subject: Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z >>>>> William Dunlap via R-devel >

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-24 Thread Martin Maechler
lty to argue againston the other hand it is also expected >> to see these in a non-genetic context. For instance the Framingham study >> was established in 1948 just got $34m for six years on phenotypewide >> association which we would be interesting to see. >> >

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-24 Thread Serguei Sokol
e association which we would be interesting to see. Best wishes, Jing Hua From: peter dalgaard Sent: 21 June 2019 16:24 To: jing hua zhao Cc: Rui Barradas; r-devel@r-project.org Subject: Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z You may

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-23 Thread William Dunlap via R-devel
hich we would be interesting to see. > > > > Best wishes, > > > > > > Jing Hua > > > > > > > > From: peter dalgaard > > Sent: 21 June 2019 16:24 > > To: jing hua zhao > > Cc: Rui Barradas; r-deve

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-23 Thread Ben Bolker
r instance the Framingham study was > established in 1948 just got $34m for six years on phenotypewide association > which we would be interesting to see. > > Best wishes, > > > Jing Hua > > > ________ > From: peter dalgaard > Sen

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread Rui Barradas
15:03 *To:* jing hua zhao; r-devel@r-project.org *Subject:* Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z Hello, Well, try it: p <- .Machine$double.eps^seq(0.5, 1, by = 0.05) z <- qnorm(p/2) pnorm(z) # [1] 7.450581e-09 1.22e-09 2.026908e-10 3.343152e-11 5.514145e-12 # [6]

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread Rui Barradas
Hello, Well, try it: p <- .Machine$double.eps^seq(0.5, 1, by = 0.05) z <- qnorm(p/2) pnorm(z) # [1] 7.450581e-09 1.22e-09 2.026908e-10 3.343152e-11 5.514145e-12 # [6] 9.094947e-13 1.500107e-13 2.474254e-14 4.080996e-15 6.731134e-16 #[11] 1.110223e-16 p/2 # [1] 7.450581e-09 1.22e-09

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread jing hua zhao
: peter dalgaard Sent: 21 June 2019 16:24 To: jing hua zhao Cc: Rui Barradas; r-devel@r-project.org Subject: Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z You may want to look into using the log option to qnorm e.g., in round figures: > log(1e-300) [1] -690.7755 > qnorm(-691, log=TRU

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread Gabriel Becker
Rui, > > > > Thanks for your quick reply -- this allows me to see the bottom of this. > I was hoping we could have a handle of those p in genmoics such as 1e-300 > or smaller. > > > > Best wishes, > > > > > > Jing Hua > > > > ___

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread peter dalgaard
15:03 > To: jing hua zhao; r-devel@r-project.org > Subject: Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z > > Hello, > > Well, try it: > > p <- .Machine$double.eps^seq(0.5, 1, by = 0.05) > z <- qnorm(p/2) > > pnorm(z) > # [1] 7.450581e-09 1.2

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread Christophe DUTANG
st wishes, > > > Jing Hua > > > From: Rui Barradas > Sent: 21 June 2019 15:03 > To: jing hua zhao; r-devel@r-project.org > Subject: Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z > > Hello, > > Well, try it: > > p <

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread jing hua zhao
-devel@r-project.org Subject: Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z Hello, Well, try it: p <- .Machine$double.eps^seq(0.5, 1, by = 0.05) z <- qnorm(p/2) pnorm(z) # [1] 7.450581e-09 1.22e-09 2.026908e-10 3.343152e-11 5.514145e-12 # [6] 9.094947e-13 1.500107e-13 2.4742

[Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread jing hua zhao
Dear R-developers, I am keen to calculate exp(z*z/2) with z=qnorm(p/2) and p is very small. I wonder if anyone has experience with this? Thanks very much in advance, Jing Hua [[alternative HTML version deleted]] __ R-devel@r-project.org