I have to create 2 variables
the first one is a random variable (e1) between 1-17
the second is a variable (e2) between 1-17 and with probability of 0.8.
But the condition of the second variable have to be < of e1
gen e1 = 0+int((17-0+1) * runiform())
gen e2 = rbinomial(16, 0.8)<e1
but e2 give me only 0 and 1
Thanks
the first one is a random variable (e1) between 1-17
the second is a variable (e2) between 1-17 and with probability of 0.8.
But the condition of the second variable have to be < of e1
gen e1 = 0+int((17-0+1) * runiform())
gen e2 = rbinomial(16, 0.8)<e1
but e2 give me only 0 and 1
Thanks
Comment