Re: [R] how to repeat the results of a generated probabilities

2007-10-17 Thread sigalit mangut-leiba
It does! thank you very much. Sigalit. On 10/17/07, Peter McMahan <[EMAIL PROTECTED]> wrote: > > There are two things that will help you out. > > First, instead of getting the individual z1 and x1 one at a time and > then multiplying them you can call rbinom(200,1,p) to get a vector of > 200 inde

[R] how to repeat the results of a generated probabilities

2007-10-17 Thread sigalit mangut-leiba
hello, I want to simulate 200 times the mean of a joint probability (y1) and 200 times the mean of another joint distribution (y2), that is I'm expecting to get 200 means of y1 and 200 means of y2. y1 and y2 are probabilities that I calculate from the marginal prob. (z1 and z2 respectively) multip