Sashelp Data Sets

1980 US Presidential Election Data

The Sashelp.Vote1980 data set contains US county votes-cast proportions and demographic and geographic characteristics for 3,107 US counties in the 1980 presidential election (Pace and Barry 1997). The six explanatory variables are as follows: the population 18 years of age or older (Pop), the population with 12th-grade or higher education (Edu), the number of owned housing units (Houses), the aggregate income (Income), and scaled longitude and latitude of geographic centroids (Longitude, Latitude). The dependent variable LogVoteRate is the logarithm of the proportion of votes cast divided by the variable Pop. The following steps display information about the data set Sashelp.Vote1980 and create Figure B.21:

title 'US 1980 Presidential Election Data';
proc contents data=sashelp.vote1980 varnum;
   ods select position;
run;

title 'The First Five Observations Out of 3,107';
proc print data=sashelp.vote1980(obs=5);
run;

Figure B.21: US 1980 Presidential Election Data

US 1980 Presidential Election Data

Variables in Creation Order
#VariableTypeLenLabel
1LogVoteRateNum8Log Votes Cast per County
2PopNum8Population of 18 Years and Older
3EduNum8Population with 12th Grade and Higher
4HousesNum8Number of Owned Housing Units
5IncomeNum8Aggregate Income
6LongitudeNum8Scaled Longitude
7LatitudeNum8Scaled Latitude

The First Five Observations Out of 3,107

ObsLogVoteRatePopEduHousesIncomeLongitudeLatitude
1-0.661569.97299.24639.0040512.1349-0.866410.32542
2-0.6508610.903310.22129.9657613.0566-0.877550.30655
3-0.617119.72228.75358.7076511.6306-0.853890.31863
4-0.639079.27378.18318.2774111.2437-0.871270.32997
5-0.7002710.15159.20779.2406812.1551-0.865660.33980