Re: [Rd] Pb with lapply()

2008-02-07 Thread Herve Pages
Thanks Martin for your patient and detailed explanations! So with the base4 solution, base would import base4 so lapply() could call base4::as.list()? Sounds good. Making as.list() a *primitive* function with C-internal S3 and S4 method dispatch: like for length(), etc...? Sounds good too. I'm wo

[Rd] Choosing CRAN Mirror in Windows GUI

2008-02-07 Thread Gabor Grothendieck
When you choose the CRAN Mirror in the Windows GUI Packages menu in "R version 2.6.2 alpha (2008-01-26 r44181)" the first mirror is highlighted when you open it even if the mirror had been set. If the mirror had previously been set then that previously set mirror should be highlighted rather than

[Rd] help with R rendering engine

2008-02-07 Thread Mark W Kimpel
I'm doing some work on a potential patch to the Bioconductor package Rgraphviz and have some questions on code that is contained in engine.c. In particular, I am developing some custom shapes using polygon and need to make sure that, with rendering, the line connecting the centers of two polygo

Re: [Rd] pnorm

2008-02-07 Thread Thomas Lumley
On Thu, 7 Feb 2008, jing hua zhao wrote: > > I calculated a two-sided p values according to 2*(1-pnorm(8.104474)), > which gives 4.440892e-16. However, it appears to be 5.30E-16 by a > colleague and 5.2974E-16 from SAS. I tried to get around with mvtnorm > package but it turns out to be using pn

Re: [Rd] The standalone Rmath library and VC++ 2003

2008-02-07 Thread Oran Johnson
Where is "doublernbeta(double, double, double);" ? It's in Rmath.h, but in the source or supporting libs. Oran -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 1:36 PM To: Oran Johnson Cc: r-devel@r-project.org Subject: RE: [

[Rd] Sampling with unequal probabilities

2008-02-07 Thread Tim Hesterberg
This is in followup to a thread on R-help with subject "Sampling". I claim that R does the wrong thing by default when sampling with unequal probabilities without replacement - the selection probabilities are not proportional to 'prob', for any draw after the first: I suggest that R do what S-PLUS

Re: [Rd] pnorm

2008-02-07 Thread Dimitris Rizopoulos
you should use the 'lower.tail' argument of pnorm(), e.g., check the following: 2 * (1 - pnorm(8.104474)) 2 * pnorm(8.104474, lower.tail = FALSE) I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven

Re: [Rd] pnorm

2008-02-07 Thread Duncan Murdoch
On 2/7/2008 12:00 PM, jing hua zhao wrote: > Dear R list, > > I calculated a two-sided p values according to 2*(1-pnorm(8.104474)), which > gives 4.440892e-16. However, it appears to be 5.30E-16 by a colleague and > 5.2974E-16 from SAS. I tried to get around with mvtnorm package but it turns

Re: [Rd] pnorm

2008-02-07 Thread Prof Brian Ripley
On Thu, 7 Feb 2008, jing hua zhao wrote: > > Dear R list, > > I calculated a two-sided p values according to 2*(1-pnorm(8.104474)), > which gives 4.440892e-16. However, it appears to be 5.30E-16 by a > colleague and 5.2974E-16 from SAS. I tried to get around with mvtnorm > package but it turns

Re: [Rd] pnorm

2008-02-07 Thread Martin Becker
I guess that you destroy the accuracy of the calculation by the subtraction. Try 2*(pnorm(8.104474,lower=FALSE)) instead, which results in 5.29742e-16 for me. Regards, Martin jing hua zhao schrieb: > Dear R list, > > I calculated a two-sided p values according to 2*(1-pnorm(8.104474)), w

[Rd] pnorm

2008-02-07 Thread jing hua zhao
Dear R list, I calculated a two-sided p values according to 2*(1-pnorm(8.104474)), which gives 4.440892e-16. However, it appears to be 5.30E-16 by a colleague and 5.2974E-16 from SAS. I tried to get around with mvtnorm package but it turns out to be using pnorm for univariate case. I should

Re: [Rd] [R] 2.6.2 RC

2008-02-07 Thread Peter Dalgaard
宋时歌 wrote: > Hi, > > I noticed that the 2.6.2 tar ball did not update, is it a good sign that no > bugs have been found and it is ready to go? > > No. It's a sign that I can't type. The crontab was set for making builds on Feb 1-6 I have initiated a manual build which should show up on www