Re: [Rd] Problem in conditional looping

2008-06-27 Thread Mathieu Ribatet
Why don't you consider a "while" loop e.g. while (Pij < 0) ##Then you resample according to your code Nadeem Shafique a écrit : Respected All, I am writing a program in R and facing some problem with applying "if statment". Program first draw random numbers from bivariate normal distribution

[Rd] Problem in conditional looping

2008-06-26 Thread Nadeem Shafique
Respected All, I am writing a program in R and facing some problem with applying "if statment". Program first draw random numbers from bivariate normal distribution then compute variable say Pi and Pij from that sample and then further computation . . . In some samples Pij is