I have two variables of values 0 and 1, respectively.
I would like to make a new variable that takes in these two variables, and picks either 0 or 1 based on an assigned probability. Let's say I want the new variable to return a '0' 95% of the time, and to return '1' 5% of the time.
is this possible?
How do I assign probability to certain inputs?
-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am