From dbpemste at artsci.wustl.edu  Wed Apr 30 20:20:36 2003
From: dbpemste at artsci.wustl.edu (dbpemste@artsci.wustl.edu)
Date: Wed Apr 30 19:20:48 2003
Subject: [Rd] pnorm conditional (PR#2883)
Message-ID: <200304301720.h3UHKa2b010147@pubhealth.ku.dk>


--=-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.edu, dan@lcws.org
Web: http://www.danpemstein.com
PGP: http://www.danpemstein.com/files/pgp.txt

--=-YFjXKq8/D/t1qWmIzQ9D
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA+sAX6ItxEqhMqILgRAjKxAJ40B1Laa6AEiYt+Mh29FhT3o03IsACfXwKb
/so6cYytUi1PmuPwZOMs75E=
=QgyI
-----END PGP SIGNATURE-----

--=-YFjXKq8/D/t1qWmIzQ9D--


[Rd] pnorm conditional (PR#2883)
dbpemste@artsci.wustl.edu