NY_data(spdep)
NY_data()所属R语言包:spdep
New York leukemia data
纽约白血病数据
译者:生物统计家园网 机器人LoveR
描述----------Description----------
New York leukemia data taken from the data sets supporting Waller and Gotway 2004 (the data should be loaded by running example(NY_data) to demonstrate spatial data import techniques).
纽约白血病数据从数据集,支持Waller和Gotway 2004(数据应加载通过运行example(NY_data)展示空间数据导入技术)。
用法----------Usage----------
data(NY_data)
格式----------Format----------
A data frame with 281 observations on the following 12 variables, and the binary coded spatial weights used in the source.
281以下12个变量的观察,并在源代码中使用二进制编码的空间权重数据框。
AREANAME name of census tract
AREANAME名称人口普查
AREAKEY unique FIPS code for each tract
AREAKEY每一块独特的FIPS代码
X x-coordinate of tract centroid (in km)
XX-道质心坐标(单位:公里)
Y y-coordinate of tract centroid (in km)
Y道质心的y坐标(单位:公里)
POP8 population size (1980 U.S. Census)
POP8的人口规模(1980年美国人口普查)
TRACTCAS number of cases 1978-1982
TRACTCAS的情况下,1978年至1982年
PROPCAS proportion of cases per tract
PROPCAS比例的情况下,每道
PCTOWNHOME percentage of people in each tract owning their own home
PCTOWNHOME比例的人在每一块拥有自己的家
PCTAGE65P percentage of people in each tract aged 65 or more
PCTAGE65P比例的人在65岁以上的每一块
Z ransformed propoprtions
Z的ransformed propoprtions
AVGIDIST average distance between centroid and TCE sites
AVGIDIST之间的平均距离质心和TCE网站
PEXPOSURE "exposure potential": inverse distance between each census tract centroid and the nearest TCE site, IDIST, transformed via log(100*IDIST)
PEXPOSURE“暴露潜在的”反每个人口普查区的质心之间的距离,最近的的TCE网站,IDIST,摇身一变通过log(100 * IDIST的)
Details
详细信息----------Details----------
The examples section shows how the DBF files from the book website for Chapter 9 were converted into the nydata data frame and the listw_NY spatial weights list.
的例子展示了如何从第9章的图书网站的DBF文件转换成nydata数据框和listw_NY空间权重列表。
源----------Source----------
http://www.sph.emory.edu/~lwaller/ch9index.htm
参考文献----------References----------
实例----------Examples----------
## NY leukemia[#NY白血病]
nydata <- read.dbf(system.file("etc/misc/nydata.dbf", package="spdep")[1])
coordinates(nydata) <- c("X", "Y")
nyadjmat <- as.matrix(read.dbf(system.file("etc/misc/nyadjwts.dbf",
package="spdep")[1])[-1])
ID <- as.character(names(read.dbf(system.file("etc/misc/nyadjwts.dbf",
package="spdep")[1]))[-1])
identical(substring(ID, 2, 10), substring(as.character(nydata$AREAKEY), 2, 10))
nyadjlw <- mat2listw(nyadjmat, as.character(nydata$AREAKEY))
listw_NY <- nb2listw(nyadjlw$neighbours, style="B")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|