Displaying 2 results from an estimated 2 matches for "pnorm_both".
2010 Jun 10
1
Rmath.dll importing in VB6 problem
...> pnorm(2, 15)
[1] 6.117164e-39
which is what i need.
I have already installed R, i generated the Rmath.DLL file out so i can
import it into my VB6 and use it.
Anyway, i reviewed pnorm.c file which was in the directory tree of project R
i downloaded, and it has two functions in it:
pnorm5 and pnorm_both
i have successfully imported the Rmath.dll file into my VB6 program, the
matter is that now i am able to use two functions inside pnorm.c which are
pnorm5 and pnorm_both; but not the pnorm() (which gives me the result i am
looking for) and i get back this error:
"Run-time error '453':...
2003 Apr 30
1
pnorm conditional (PR#2883)
--=-YFjXKq8/D/t1qWmIzQ9D
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
I was going over the source in src/nmath/pnorm.c and noticed a little
bug in pnorm_both (in R 1.7.0). The else-if on line 205 covers the
entire real line. Seems you want an &&, not an ||. Doesn't make a big
difference (you still get a 0 or 1 from extreme starting values) but
your log refinements will always be skipped.
--=20
Daniel Pemstein
Email: dbpemste@artsci.wustl...