Hi,
For a class exercise to show an association between the exposure and the outcome, I want to create a random dichotomous variable (0,1) in a real dataset based on another real dichotomous variable. Is there a way to create such a variable?
Many thanks!
For a class exercise to show an association between the exposure and the outcome, I want to create a random dichotomous variable (0,1) in a real dataset based on another real dichotomous variable. Is there a way to create such a variable?
Many thanks!
Comment