geary.mc(spdep)
geary.mc()所属R语言包:spdep
Permutation test for Geary's C statistic
置换测试Geary的C统计
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A permutation test for Geary's C statistic calculated by using nsim random permutations of x for the given spatial weighting scheme, to establish the rank of the observed statistic in relation to the nsim simulated values.
置换测试Geary的C统计计算使用NSIM随机排列的x给定的空间权重方案,建立模拟值NSIM所观察到的统计排名。
用法----------Usage----------
geary.mc(x, listw, nsim, zero.policy=NULL, alternative="greater",
spChk=NULL, adjust.n=TRUE, return_boot=FALSE)
参数----------Arguments----------
参数:x
a numeric vector the same length as the neighbours list in listw
一个数值向量相同的长度的邻居列表中listw
参数:listw
a listw object created for example by nb2listw
例如创建一个listw对象的nb2listw
参数:nsim
number of permutations
的排列数
参数: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), or "less"; this reversal corresponds to that on geary.test described in the section on the output statistic value, based on Cliff and Ord 1973, p. 21 (changed 2011-04-11, thanks to Daniel Garavito).
一个字符串,指定其他假设,必须是一个“大”(默认),或“少”,相对应的是,这种逆转geary.test一节中描述的输出统计值,根据崖和Ord 1973年,页。 21(2011-04-11改变,要感谢丹尼尔Garavito)。
参数: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,观测值的数量进行调整
参数:return_boot
return an object of class boot from the equivalent permutation bootstrap rather than an object of class htest
返回类的boot的等效置换引导,而不是一个对象类htest的对象
值----------Value----------
A list with class htest and mc.sim containing the following components:
列表类htest和mc.sim包含以下组件:
参数:statistic
the value of the observed Geary's C.
Geary的C.观察到的值
参数:parameter
the rank of the observed Geary's C.
排名所观察到的Geary的C.
参数:p.value
the pseudo p-value of the test.
伪p值的测试。
参数:alternative
a character string describing the alternative hypothesis.
一个字符串,描述了另一种假设。
参数:method
a character string giving the method used.
一个字符串提供的方法使用。
参数:data.name
a character string giving the name(s) of the data, and the number of simulations.
一个字符的字符串,给出的名称(s)的数据,并将模拟数量。
参数:res
nsim simulated values of statistic, final value is observed statistic
NSIM模拟的统计值,终值的观察统计
(作者)----------Author(s)----------
Roger Bivand <a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>
参考文献----------References----------
<h3>See Also</h3>
实例----------Examples----------
data(oldcol)
sim1 <- geary.mc(COL.OLD$CRIME, nb2listw(COL.nb, style="W"),
nsim=99, alternative="less")
sim1
mean(sim1$res)
var(sim1$res)
summary(sim1$res)
colold.lags <- nblag(COL.nb, 3)
sim2 <- geary.mc(COL.OLD$CRIME, nb2listw(colold.lags[[2]],
style="W"), nsim=99)
sim2
summary(sim2$res)
sim3 <- geary.mc(COL.OLD$CRIME, nb2listw(colold.lags[[3]],
style="W"), nsim=99)
sim3
summary(sim3$res)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|