Re: [R] Add constraints to rbinom

2013-07-01 Thread Meyners, Michael
Anamika Chaudhuri > Sent: Freitag, 28. Juni 2013 04:06 > To: r-help@r-project.org > Subject: [R] Add constraints to rbinom > > Hi: > > I am trying to generate Beta-Binomial random variables and then calculate > Binomial exact confidence intervals to the rate..I was wondering

[R] Add constraints to rbinom

2013-06-27 Thread Anamika Chaudhuri
Hi: I am trying to generate Beta-Binomial random variables and then calculate Binomial exact confidence intervals to the rate..I was wondering if I needed to add a constraint such that x<=n to it, how do I go about it. The reason is I am getting data where x>n which is giving a rate>1. Heres my co