File: elect80.Rd

package info (click to toggle)
r-cran-spdata 2.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,920 kB
  • sloc: xml: 10; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 1,997 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/elect80.R
\docType{data}
\name{elect80}
\alias{elect80}
\alias{elect80_lw}
\alias{k4}
\alias{dll}
\alias{e80_queen}
\title{1980 Presidential election results}
\format{
A SpatialPointsDataFrame with 3107 observations on the following 7 variables.
\itemize{
        \item{FIPS: a factor of county FIPS codes}
        \item{long: a numeric vector of longitude values}
        \item{lat: a numeric vector of latitude values}
        \item{pc_turnout: Votes cast as proportion of population over age 19 eligible to vote}
        \item{pc_college: Population with college degrees as proportion of population over age 19 eligible to vote}
        \item{pc_homeownership: Homeownership as proportion of population over age 19 eligible to vote}
        \item{pc_income: Income per capita of population over age 19 eligible to vote}
}
}
\source{
Pace, R. Kelley and Ronald Barry. 1997. "Quick Computation of Spatial Autoregressive Estimators", in Geographical Analysis; sourced from the data folder in the Spatial Econometrics Toolbox for Matlab, formerly available from http://www.spatial-econometrics.com/html/jplv7.zip, files \code{elect.dat} and \code{elect.ford} (with the final line dropped).
}
\usage{
elect80
}
\description{
A data set for 1980 Presidential election results covering 3,107 US counties using geographical coordinates. In addition, three spatial neighbour objects, \code{k4} not using Great Circle distances, \code{dll} using Great Circle distances, and \code{e80_queen} of Queen contiguities for equivalent County polygons taken from file \code{co1980p020.tar.gz} on the USGS National Atlas site, and a spatial weights object imported from \code{elect.ford} - a 4-nearest neighbour non-GC row-standardised object, but with coercion to symmetry.
}
\examples{
if (requireNamespace("sp", quietly = TRUE)) {
  library(sp)
  data(elect80)
  summary(elect80)
  plot(elect80)
}
}
\keyword{datasets}
\keyword{sp}