Re: [R] R equivalent of erfcinv in matlab

2008-04-14 Thread Prof Brian Ripley
ww.cmis.csiro.au/bill.venables/ > > -Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Ben Bolker > Sent: Monday, 14 April 2008 11:00 AM > To: [EMAIL PROTECTED] > Subject: Re: [R] R equivalent of erfcinv in matlab > > csiro.au&

Re: [R] R equivalent of erfcinv in matlab

2008-04-13 Thread Bill.Venables
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Bolker Sent: Monday, 14 April 2008 11:00 AM To: [EMAIL PROTECTED] Subject: Re: [R] R equivalent of erfcinv in matlab csiro.au> writes: > > At a guess ... > > > erfc <- function(x) 2 * pnorm(x * sqrt(2), lower

Re: [R] R equivalent of erfcinv in matlab

2008-04-13 Thread Ben Bolker
csiro.au> writes: > > At a guess ... > > > erfc <- function(x) 2 * pnorm(x * sqrt(2), lower = FALSE) > > erfcinv <- function(x) qnorm(x/2, lower = FALSE)/sqrt(2) > > erfc(0.3) > [1] 0.6713732 > > erfcinv(erfc(0.3)) > [1] 0.3 > > > > It may not hurt to include these wrappers in R for matlab r

Re: [R] R equivalent of erfcinv in matlab

2008-04-13 Thread sun
[EMAIL PROTECTED] wrote: > At a guess ... > >> erfc <- function(x) 2 * pnorm(x * sqrt(2), lower = FALSE) >> erfcinv <- function(x) qnorm(x/2, lower = FALSE)/sqrt(2) >> erfc(0.3) > [1] 0.6713732 >> erfcinv(erfc(0.3)) > [1] 0.3 > > It may not hurt to include these wrappers in R for matlab refugees.

Re: [R] R equivalent of erfcinv in matlab

2008-04-13 Thread Bill.Venables
86 7700 mailto:[EMAIL PROTECTED] http://www.cmis.csiro.au/bill.venables/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sun Sent: Monday, 14 April 2008 8:50 AM To: [EMAIL PROTECTED] Subject: Re: [R] R equivalent of erfcinv in matlab Peter Dalgaard wrote:

Re: [R] R equivalent of erfcinv in matlab

2008-04-13 Thread sun
Peter Dalgaard wrote: > sun wrote: >> I am converting some matlab code into R that use inverse of the >> complementary error function, erfcinv and did not find an equivalent in >> R, is there such a function in some contributed modules? >> >> > Basically, it is qnorm() with suitable scaling. T

Re: [R] R equivalent of erfcinv in matlab

2008-04-13 Thread Peter Dalgaard
sun wrote: > I am converting some matlab code into R that use inverse of the > complementary error function, erfcinv and did not find an equivalent in > R, is there such a function in some contributed modules? > > Basically, it is qnorm() with suitable scaling. The help page for Normal has th

[R] R equivalent of erfcinv in matlab

2008-04-13 Thread sun
I am converting some matlab code into R that use inverse of the complementary error function, erfcinv and did not find an equivalent in R, is there such a function in some contributed modules? Thanks. __ R-help@r-project.org mailing list https://stat.