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 Python

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

2019-06-24 Thread Martin Maechler
nction (lxabs, signs, l.off = apply(lxabs, 2, max), strict = TRUE) { stopifnot(length(dim(lxabs)) == 2L) # is.matrix(.) generalized sum. <- colSums(signs * exp(lxabs - rep(l.off, each=nrow(lxabs if(anyNA(sum.) || any(sum. <= 0)) (if(strict) stop else warning)("lssum

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
>> would have difficulty 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 interestin

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 want

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

2019-06-23 Thread William Dunlap via R-devel
enotypewide > 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 >

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

2019-06-23 Thread Ben Bolker
tic 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. > > Best wishes, > > > Jing Hua > > > ________________________ > From: peter dal

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 2.02

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
> > Dear 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 > > &g

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