Re: [R] Re: OC curve in "Quality Control"

About this list Date view Thread view Subject view Author view Attachment view

From: Philippe Glaziou (glaziou@pasteur-kh.org)
Date: Sat 27 Dec 2003 - 13:10:21 EST


Message-id: <20031227021021.GB2221@pasteur-kh.org>

WilDscOp <wildscop@yahoo.com> wrote:
> For Number 1 problem: about <http://pari.math.u-bordeaux.fr/>, sorry i
> didnot understand what to download or what to call! From
> <http://pari.math.u-bordeaux.fr/download.html> can you please tell me what
> should i download and how to use(i could not find any doc)? An exact link
> for download may be helpful:)

The download page gives links to the sources of PARI. There is
also a self-installing MS-Windows executable there. As for the
doc, there is a menu item which reads "Documentation". Click on
it, and there you have a user's guide, tutorial, installation
guide, ref card, manual pages. By the way, there are other
packages out there to handle large entities (on a 32-bit machine)
like 500! (Octave, Matlab, Maple, Mathematica, Yacas...). I
suggested that one because I do not know the others.

> ----------------- ---------------------------
> For Number 3 problem: i had some problem using dhyper() because i cannot
> match the parameters there. I used
> > N<-5000; n<-50; D<-seq(0,500,1); d<-0 # (For d = 1 i just recalculated
> it with d<-1)
> > hypg <- (choose(D, d)* choose((N-D), (n-d)) / choose(N,n))
> instead and it surves my purpose. Anyway, is there any better procedure? I
> could not find Hypergeometric() in the base.

You needed phyper for that specific problem, not dhyper (the help
page for dhyper explains what dhyper, phyper, qhyper and rhyper
do).

hypg <- phyper(d,D,N-D,n)

does the job in a slightly more efficient manner.

I would suggest that you check out the following:

help.search("hypergeometric")
?Hypergeometric

-- 
Philippe Glaziou
Epidemiologist

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Thu 01 Jan 2004 - 09:21:04 EST