Re: [R] how R implement qnorm()

2012-10-19 Thread Sheng Liu
11:46 PM, peter dalgaard wrote: > > On Oct 19, 2012, at 06:05 , Thomas Lumley wrote: > > > On Fri, Oct 19, 2012 at 12:21 PM, Sheng Liu wrote: > >> Thanks a lot. It's very helpful. > >> I've read through the c code. Just FYI and for my completion of th

Re: [R] how R implement qnorm()

2012-10-18 Thread Sheng Liu
Thanks a lot. It's very helpful. I've read through the c code. Just FYI and for my completion of the question, I post some of my thought on it: To me it looks like the algorithm is actually inquiring through an approximation table (the approximations, at least for pnom, is "derived from those in "R

[R] how R implement qnorm()

2012-10-17 Thread Sheng Liu
how R implement qnorm() I wonder anyone knows the mathematical process that R calculated the quantile? The reason I asked is soly by curiosity. I know the probability of a normal distribution is calculated through integrate the Gaussian function, which can be implemented easily (see code), while