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&
[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
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
[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.
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:
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
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
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.
8 matches
Mail list logo