Displaying 20 results from an estimated 4000 matches similar to: "how R implement qnorm()"
2006 Jun 26
2
Inverse Error Function
Do any of the R libraries have an implementation of the Inverse Error
Function (Inverse ERF)?
ref:
http://mathworld.wolfram.com/InverseErf.html
http://functions.wolfram.com/GammaBetaErf/InverseErf/
Thanks,
Nathan
[[alternative HTML version deleted]]
2017 Apr 16
1
Getting high precision values from qnorm in the tail
Hello All
I am looking for high precision values for the normal distribution in the
tail,(1e-10 and 1 - 1e-10) as the R package that I am using sets any number
which is out of this range to these values and then calls the qnorm and qt
function.
What I have noticed is that the qnorm implementation in R is not symmetric
when looking at the tails. This is quite surprising to me, as it is well
known
2013 May 20
4
Código del algoritmo de qnorm
Cordial saludo para cada uno.
De manera amable les pido ayuda para acceder al código R usado para el
algoritmo de la función qnorm.
Gracias por su ayuda.
César Escalante C.
[[alternative HTML version deleted]]
2004 Aug 06
3
Bug in qnorm or pnorm?
I found the following strange behavior using qnorm() and pnorm():
> x<-8.21;x-qnorm(pnorm(x))
[1] 0.0004638484
> x<-8.22;x-qnorm(pnorm(x))
[1] 0.01046385
> x<-8.23;x-qnorm(pnorm(x))
[1] 0.02046385
> x<-8.24;x-qnorm(pnorm(x))
[1] 0.03046385
> x<-8.25;x-qnorm(pnorm(x))
[1] 0.04046385
> x<-8.26;x-qnorm(pnorm(x))
[1] 0.05046385
> x<-8.27;x-qnorm(pnorm(x))
2010 Nov 12
4
dnorm and qnorm
Hello all,
I have a question about basic statistics. Given a PDF value of 0.328161,
how can I find out the value of -0.625 in R? It is like reversing the dnorm
function but I do not know how to do it in R.
> pdf.xb <- dnorm(-0.625)
> pdf.xb
[1] 0.328161
> qnorm(pdf.xb)
[1] -0.444997
> pnorm(pdf.xb)
[1] 0.628605
Many thanks,
Edwin
--
View this message in context:
2011 Aug 23
2
qnorm?
Hi everyone,
I have the following problem. I have some small p-values but when I use
qnorm(1-4e-30)
I get an error.
Is there anyway to get around this?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2004 Mar 05
6
qnorm(2) ends with segmentation fault (PR#6648)
Full_Name: Xiong Guanglei
Version: 1.8.1
OS: Linux
Submission from: (NULL) (202.38.103.50)
qnorm(x)
when x>1.0
2007 Mar 29
1
ansari.test.default: bug in call to uniroot?
A recent message on ansari.test() prompted me to play with the examples. This
doesn't work for me in R version 2.4.1
R> ansari.test(rnorm(100), rnorm(100, 0, 2), conf.int = TRUE)
Error in uniroot(ab, srange, tol = 1e-04, zq = qnorm(alpha/2, lower = FALSE)) :
object "ab" not found
It looks like there's a small typo in ccia() inside
ansari.test.default() in which
2011 May 19
2
recursive function
Hi,
I created a function for obtaining the normal cumulative distribution (I
know all this already exists in R, I just wanted to verify my
understanding of it). below is the code I came up with.
cdf<-function(x) {
erf<-function(x) {
# approximation to the error function (erf) of the
# normal cumulative distribution function
# from Winitzki
2000 Jan 12
1
Usage of p/d/qnorm
Hello,
could You please help: I am looking for a way to formulate test accuracy
measures such as test sensitivity, specificity, predictive values, and
correct classification rate using p/d/qnorm. The tests' primary values
follow a bimodal distribution, which is modelled by a mixture of two normal
distributions:
p * dnorm ((x - u1) / s1) / s1 +
(1 - p) * dnorm ((x - u2) / s2) / s2)
2012 May 25
1
difference between qnorm and qqnorm
dear all,
it will just take you a minute to tell me the difference
between qnorm and qqnorm. are they same or is there any
difference between them??
regards
2008 Apr 17
2
pnbinom.c qnorm.c
Dear R users,
I was wondering from where I could get the C source code to compute
pnbinom() and qnorm() ?
(I would use R in batch mode but I find the startup time prohibitive, unless
there is a way to speed it up)
I searched the Web and it clearly is part of the R distribution, I just
don't know how to extract them.
Thanking you !
Markus Loecher
Princeton, NJ
[[alternative HTML version
2008 Sep 11
2
Plot qnorm
Hi,
I have this problem:
X is hazardous variable N(mean 2, sd=3)
>>question 1) Find the c value, so that P(X>c)=0.10. using R
>>question 2) Graph the function N(2,3) and with this graph, explain what
you do in question number 1.
I just found question number one but not the second one. So, I'd like to
make a plot form this distribution N (2,3) using the functions plot and
2011 Sep 03
3
question with uniroot function
Dear all,
I have the following problem with the uniroot function. I want to find
roots for the fucntion "Fp2" which is defined as below.
Fz <- function(z){0.8*pnorm(z)+p1*pnorm(z-u1)+(0.2-p1)*pnorm(z-u2)}
Fp <- function(t){(1-Fz(abs(qnorm(1-(t/2)))))+(Fz(-abs(qnorm(1-(t/2)))))}
Fp2 <- function(t) {Fp(t)-0.8*t/alpha}
th <- uniroot(Fp2, lower =0, upper =1,
2004 Jun 16
2
erf function documentation
Hi all. I may be wrong, (and often am), but in trying
to determine how to calculate the erf function, the
documentation for 'pnorm' states:
## if you want the so-called 'error function'
erf <- function(x) 2 * pnorm(x * sqrt(2)) - 1
## and the so-called 'complementary error function'
erfc <- function(x) 2 * pnorm(x * sqrt(2),
lower=FALSE)
Should, instead, it read:
2002 Jul 03
1
Calling qnorm from Fortran
The R-exts may explicitly state this but I missed it. How do I call qnorm or pnorm from Fortran? Thanks -Frank
--
Frank E Harrell Jr Prof. of Biostatistics & Statistics
Div. of Biostatistics & Epidem. Dept. of Health Evaluation Sciences
U. Virginia School of Medicine http://hesweb1.med.virginia.edu/biostat
2010 Feb 10
1
Copyright on src/nmath/qnorm.c
At the top of src/nmath/qnorm.c it is stated:
* Copyright (C) 1998 Ross Ihaka
* Copyright (C) 2000--2005 The R Development Core Team
* based on AS 111 (C) 1977 Royal Statistical Society
* and on AS 241 (C) 1988 Royal Statistical Society
The routine is in fact an f2c'd version of AS241 from StatLib:
http://lib.stat.cmu.edu/apstat/241 and http://lib.stat.cmu.edu/apstat/
It
2012 Apr 07
1
Uniroot error
Dear All
I am trying to find a uniroot of a function within another function (see
example) but I am getting an error message (f()values at end points not of
opposite sign). I was wondering if you would be able to advise how redefine
my function so that I can find the solution. In short my first function
calculates the intergrale which is function of "t" , I need to find the
uniroot of
2004 Aug 13
0
pnorm, qnorm
Trenkler, Dietrich said:
>
> I found the following strange behavior using qnorm() and pnorm():
>
> > x<-8.21;x-qnorm(pnorm(x))
> [1] 0.0004638484
> > x<-8.28;x-qnorm(pnorm(x))
> [1] 0.07046385
> > x<-8.29;x-qnorm(pnorm(x))
> [1] 0.08046385
> > x<-8.30;x-qnorm(pnorm(x))
> [1] -Inf
>
qnorm(1-.Machine$double.eps)
[1] 8.12589
2011 May 30
1
Error in minimizing an integrand using optim
Hi,
Am not sure if my code itself is correct. Here's what am trying to do:
Minimize integration of a function of gaussian distributed variable 'x' over
the interval qnorm(0.999) to Inf by changing value of parameter 'mu'. mu is
the shift in mean of 'x'.
Code:
# x follows gaussian distribution
# fx2 to be minimized by changing values of mu
# integration to be done over