From nadeemshafique at gmail.com  Fri Jun 27 06:03:32 2008
From: nadeemshafique at gmail.com (Nadeem Shafique)
Date: Fri, 27 Jun 2008 05:03:32 +0100
Subject: [Rd] Problem in conditional looping
Message-ID: <1e1cef7f0806262103j1f3c9b5ar64d666f68109d383@mail.gmail.com>

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 appearing with negitive sign and ultimately
resulted in an negative variance estimator.  Now i want to design the
program like this if the Pij is negative then go back and draw another
sample until we get a sample that produces positive Pij and then move
forward for further processing.

Best Regards,

Nadeem Shafique Butt



[Rd] Problem in conditional looping
Nadeem Shafique