Hi everyone,
I have data with five variables: decision, x1, p1, x2, and p2. The decision is an option that someone can choose that contains information on whether this person could get x1 or x2 under p1 p2 probability.
For example, a person chooses decision one where he could get either x1 (5) with a probability of 0.7 or x2 (10) with a probability of 0.3. How to generate a new variable that reveals the value between x1 and x2 under that probability? Could anyone help me with what command I can use or what the code maybe is?
Thank you for helping me.
I have data with five variables: decision, x1, p1, x2, and p2. The decision is an option that someone can choose that contains information on whether this person could get x1 or x2 under p1 p2 probability.
For example, a person chooses decision one where he could get either x1 (5) with a probability of 0.7 or x2 (10) with a probability of 0.3. How to generate a new variable that reveals the value between x1 and x2 under that probability? Could anyone help me with what command I can use or what the code maybe is?
Thank you for helping me.
Comment