Re: R-beta: is there a way to get rid of loop?
Bill Simpson (wsimpson@uwinnipeg.ca)
Fri, 27 Feb 1998 11:59:13 -0600 (CST)
Date: Fri, 27 Feb 1998 11:59:13 -0600 (CST)
From: Bill Simpson <wsimpson@uwinnipeg.ca>
To: Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk>
Subject: Re: R-beta: is there a way to get rid of loop?
In-Reply-To: <x290qx6iv6.fsf@blueberry.kubism.ku.dk>
Thanks Peter!
> [prepare to slap forehead...]
Duh!
> nh<-rbinom(2000,ns,phit)
> nf<-rbinom(2000,nn,pfa)
>
> This will generate NA's whereever ns==0, but you had that problem anyway.
Yes I am just telling quantile to ignore them, but maybe that is not
kosher.
Bill Simpson
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._