From | Phil Schumm <[email protected]> |
To | [email protected] |
Subject | Re: st: question: how do i... |
Date | Sun, 6 Mar 2005 20:54:45 -0600 |
At 1:53 AM +0000 3/7/05, israel solaresbravo wrote:
i want to construct a variable called margin of victory:
my data set looks something like this:
state votesA votesB votesC votesD
1 10 1 6 21
2 11 2 7 22
3 12 3 8 13
4 1 4 2 3
5 2 5 3 7
my question is:
how do i create a variable called margin_of_victory = votes for 1st place - votes for 2nd place?, i.e. 21-10 for state 1, 22 - 11 for state 2, 13 - 12 for state 3, 4 - 3 for state 4, etc.
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |