Data Dictionary: | U.S. Gubernatorial Elections 2004 |
Data Source: |
T5. | Election Competitiveness | |||||||
Universe: | ||||||||
T005_002 Election Competitiveness: Vote % Difference Between Democratic and Republican Candidates
Percent base:
None - percentages not computed
Aggregation method:
None -- No totals are displayed for this variable when multiple geographies are aggregated.
Formula used to compute this variable:
#ReturnType oretval = new #ReturnType();
if (SE:T004_001 >= 20)
{
oretval = 2;
}
else if
(SE:T004_001 >= 10 & SE:T004_001 < 20)
{
oretval = 3;
}
else
if (SE:T004_001 >= 5 & SE:T004_001 < 10)
{
oretval = 4;
}
else
if (SE:T004_001 >= 0 & SE:T004_001 < 5)
{
oretval = 5;
}
else
if (SE:T004_002 >= 20)
{
oretval = 7;
}
else
if
(SE:T004_002 >= 10 & SE:T004_002 < 20)
{
oretval = 8;
}
else
if (SE:T004_002 >= 5 & SE:T004_002 < 10)
{
oretval = 9;
}
else
if (SE:T004_002 >= 0 & SE:T004_002 < 5)
{
oretval = 10;
}
else
{
oretval = 0;
}
return oretval;
|