I might be losing my mind, but I thought I once ran across a component of Stata syntax (command, extension, option, etc.) that could do the following using only one line of code:
In this scenario, I have the following:
If anyone could put me out of my misery one way or another, I'd be obliged.
In this scenario, I have the following:
- a string grouping variable (called group) that takes two possible values: a or b
- a numeric outcome variable (called score) that takes values 1 to 100
- score_a would take values of score when group==yes
- score_b would take values of score when group==no
If anyone could put me out of my misery one way or another, I'd be obliged.
Comment