globalG.test(spdep)
globalG.test()所属R语言包:spdep
Global G test for spatial autocorrelation
全球G试验的空间自相关性
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The global G statistic for spatial autocorrelation, complementing the local Gi LISA measures: localG.
G统计,全球的空间自相关性,补充了当地的GI LISA措施:localG。
用法----------Usage----------
globalG.test(x, listw, zero.policy=NULL, alternative="greater",
spChk=NULL, adjust.n=TRUE)
参数----------Arguments----------
参数:x
a numeric vector the same length as the neighbours list in listw
一个数值向量相同的长度的邻居列表中listw
参数:listw
a listw object created for example by nb2listw; if a sequence of distance bands is to be used, it is recommended that the weights style be binary (one of c("B", "C", "U")).
listw创建的对象,例如通过nb2listw;如果一个序列的距离频带是被使用,它是推荐的权重的风格是二进制(1c("B", "C", "U"))。
参数:zero.policy
default NULL, use global option value; if TRUE assign zero to the lagged value of zones without neighbours, if FALSE assign NA
默认为空,请使用全局选项的值,如果真没有邻居的滞后值的区域分配了零,如果为FALSE分配NA
参数:alternative
a character string specifying the alternative hypothesis, must be one of "greater" (default), "less" or "two.sided".
一个字符串,指定其他假设,必须是一个“大”(默认),“少”或“two.sided的”。
参数:spChk
should the data vector names be checked against the spatial objects for identity integrity, TRUE, or FALSE, default NULL to use get.spChkOption()
应的数据向量空间对象的名称进行核对身份完整性,TRUE,否则返回FALSE,默认为空,使用get.spChkOption()
参数:adjust.n
default TRUE, if FALSE the number of observations is not adjusted for no-neighbour observations, if TRUE, the number of observations is adjusted
默认为true,如果为FALSE未调整的若干意见没有邻居的意见,如果为TRUE,观测值的数量进行调整
值----------Value----------
A list with class htest containing the following components:
列表类htest包含以下组件:
参数:statistic
the value of the standard deviate of Moran's I.
标准值的偏离,莫兰的一
参数:p.value
the p-value of the test.
的p值的测试。
参数:estimate
the value of the observed statistic, its expectation and variance.
所观察到的统计数据,其期望和方差的价值。
参数:alternative
a character string describing the alternative hypothesis.
一个字符串,描述了另一种假设。
参数:data.name
a character string giving the name(s) of the data.
给予(s)的数据的名称的字符串。
(作者)----------Author(s)----------
Hisaji ONO <a href="mailto:hi-ono@mn.xdsl.ne.jp">hi-ono@mn.xdsl.ne.jp</a> and Roger Bivand
<a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>
参考文献----------References----------
use of distance statistics, Geographical Analysis, 24, p. 195; see also Getis. A, Ord, J. K. 1993 Erratum, Geographical Analysis, 25,
参见----------See Also----------
localG
localG
实例----------Examples----------
example(nc.sids)
sidsrate79 <- (1000*nc.sids$SID79)/nc.sids$BIR79
dists <- c(10, 20, 30, 33, 40, 50, 60, 70, 80, 90, 100)
ndists <- length(dists)
ZG <- numeric(length=ndists)
milesxy <- cbind(nc.sids$east, nc.sids$north)
for (i in 1:ndists) {
thisnb <- dnearneigh(milesxy, 0, dists[i])
thislw <- nb2listw(thisnb, style="B", zero.policy=TRUE)
ZG[i] <- globalG.test(sidsrate79, thislw, zero.policy=TRUE)$statistic
}
cbind(dists, ZG)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|