[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: generating random number with restriction to add to a variable in current dataset
I want to generate random numbers to add to the linear
index of a probit model (xb) so that I can predict
precisely the 1/0 observed outcomes.
Therefore, for y=1 I want to draw a random number
(vi)from a N~(0,1) so that xb+v>0 and for y=0 I want
to draw a random number (vi) so that xb+v<=0. Any idea
on how I can draw these numbers and add them to the
index in few steps?
Converse com seus amigos em tempo real com o Yahoo! Messenger
* For searches and help try: