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
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