Good day all,
I'm not an experienced Stata user.
I have a sample containing 4 dummy variables (A,B,C,D) and I need to score combinations of these 4 variables from 0 to 3. 0 being low quality, 3 being highest quality.
How can I best write a script that will score these combinations?
I worked out the combinations and scores in the below list.
I would appreciate any help on this.
Kind regards,
Joshua
I'm not an experienced Stata user.
I have a sample containing 4 dummy variables (A,B,C,D) and I need to score combinations of these 4 variables from 0 to 3. 0 being low quality, 3 being highest quality.
How can I best write a script that will score these combinations?
I worked out the combinations and scores in the below list.
A | B | C | D | Score |
0 | 1 | 1 | 1 | 3 |
1 | 1 | 1 | 0 | 3 |
1 | 1 | 0 | 1 | 3 |
1 | 0 | 1 | 1 | 3 |
1 | 1 | 1 | 1 | 3 |
0 | 1 | 1 | 0 | 2 |
1 | 0 | 1 | 0 | 2 |
0 | 0 | 0 | 1 | 1 |
0 | 0 | 1 | 0 | 1 |
0 | 1 | 0 | 0 | 1 |
1 | 0 | 0 | 0 | 1 |
0 | 0 | 1 | 1 | 1 |
1 | 1 | 0 | 0 | 1 |
0 | 1 | 0 | 1 | 1 |
1 | 0 | 0 | 1 | 1 |
0 | 0 | 0 | 0 | 0 |
Kind regards,
Joshua
Comment