找回密码
 注册
查看: 359|回复: 0

R语言 spdep包 localmoran.exact()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:40:40 | 显示全部楼层 |阅读模式
localmoran.exact(spdep)
localmoran.exact()所属R语言包:spdep

                                        Exact local Moran's Ii tests
                                         精确的局部Moran II测试

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

localmoran.exact provides exact local Moran's Ii tests under the null hypothesis, while localmoran.exact.alt provides exact local Moran's Ii tests under the alternative hypothesis. In this case, the model may be a fitted model returned by errorsarlm from which the covariance matrix is retrieved, or the covariance matrix can be passed through the Omega= argument.
localmoran.exact提供了精确的的局部Moran II测试的零假设下,而localmoran.exact.alt提供了精确的的局部Moran II测试备择假设下。在这种情况下,该模型可能是一个合适的模型返回的errorsarlm:从该协方差矩阵被检索,或者可以通过Omega=参数的协方差矩阵。


用法----------Usage----------


localmoran.exact(model, select, nb, glist = NULL, style = "W", zero.policy = NULL, alternative = "greater", spChk = NULL, resfun = weighted.residuals, save.Vi = FALSE, useTP=FALSE, truncErr=1e-6, zeroTreat=0.1)
localmoran.exact.alt(model, select, nb, glist = NULL, style = "W", zero.policy = NULL, alternative = "greater", spChk = NULL, resfun = weighted.residuals, Omega = NULL, save.Vi = FALSE, save.M = FALSE, useTP=FALSE, truncErr=1e-6, zeroTreat=0.1)
## S3 method for class 'localmoranex'
print(x, ...)
## S3 method for class 'localmoranex'
as.data.frame(x, row.names=NULL, optional=FALSE, ...)



参数----------Arguments----------

参数:model
an object of class lm returned by lm (assuming no global spatial autocorrelation), or an object of class sarlm returned by a spatial simultaneous autoregressive model fit (assuming global spatial autocorrelation represented by the model spatial coefficient); weights may be specified in the lm fit, but offsets should not be used
类的一个对象lm返回lm(假设没有全局空间自相关),或一个类的对象sarlm返回一个空间的同时自回归模型拟合(假设所代表的全局空间自相关模型空间系数);权重可以指定lm适合,但偏移量不应该使用


参数:select
an integer vector of the id. numbers of zones to be tested; if missing, all zones
一个整数向量的id。数字区域,以进行测试,如果丢失,所有区域


参数:nb
a list of neighbours of class nb
一个类nb的邻居列表


参数:glist
a list of general weights corresponding to neighbours
一般的权重对应的邻居的列表


参数:style
can take values W, B, C, and S
可以采取的值W,B,C,和S的


参数: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()


参数:resfun
default: weighted.residuals; the function to be used to extract residuals from the lm object, may be residuals, weighted.residuals, rstandard, or rstudent
默认:weighted.residuals要使用的函数提取残差lm对象,可能是residuals,weighted.residuals,rstandard或rstudent


参数:Omega
A SAR process matrix may be passed in to test an alternative hypothesis, for example Omega <- invIrW(listw, rho=0.1); Omega <- tcrossprod(Omega), chol() is taken internally
特别行政区过程矩阵可以传递到测试的假说,例如Omega <- invIrW(listw, rho=0.1); Omega <- tcrossprod(Omega),chol()内服


参数:save.Vi
if TRUE, return the star-shaped weights lists for each zone  tested
如果为TRUE,返回的星形的权重,列表为每个区域测试


参数:save.M
if TRUE, save a list of left and right M products
如果是TRUE,节省了左,右M产品列表


参数:useTP
default FALSE, if TRUE, use truncation point in integration rather than upper=Inf, see Tiefelsdorf (2000), eq. 6.7, p.69
默认是false,如果为TRUE,使用截断点的整合,而不是上= INF,请参阅Tiefelsdorf(2000年),EQ。 6.7,第69页


参数:truncErr
when useTP=TRUE, pass truncation error to truncation point function
当useTP = TRUE,通过截断误差截断点功能


参数:zeroTreat
when useTP=TRUE, pass zero adjustment to truncation point function
当useTP = TRUE,通过调零截断点功能


参数:x
object to be printed
反对要打印


参数:row.names
ignored argument to as.data.frame.localmoranex; row names assigned from localmoranex object
忽略as.data.frame.localmoranex;行名称localmoranex对象分配的参数


参数:optional
ignored argument to as.data.frame.localmoranex; row names assigned from localmoranex object
忽略as.data.frame.localmoranex;行名称localmoranex对象分配的参数


参数:...
arguments to be passed through
通过参数


值----------Value----------

A list with class localmoranex containing "select" lists, each with class moranex with the following components:
类localmoranex包含“选择”列表,列表moranex类以下组件:


参数:statistic
the value of the saddlepoint approximation of the standard deviate of global Moran's I.
的鞍点近似的标准偏离值的全局Moran的一


参数:p.value
the p-value of the test.
的p值的测试。


参数:estimate
the value of the observed global Moran's I.
的全局Moran所观察到的一值


参数:method
a character string giving the method used.
一个字符串提供的方法使用。


参数:alternative
a character string describing the alternative hypothesis.
一个字符串,描述了另一种假设。


参数:gamma
eigenvalues (two extreme values for null, vector for alternative)
特征值(两个极端值是否为空,矢量替代)


参数:oType
usually set to "E", but set to "N" if the integration leads to an out of domain value for qnorm, when the Normal assumption is substituted. This only occurs when the output p-value would be very close to zero
通常设置为“E”,但如果整合导致一个不折不扣的域值qnorm设置为“N”,“正常”的假设时被替换。这仅发生时,输出p值将非常接近零


参数:data.name
a character string giving the name(s) of the data.
给予(s)的数据的名称的字符串。


参数:df
degrees of freedom
自由度


参数:i
zone tested
区测试


参数:Vi
zone tested
区测试

When the alternative is being tested, a list of left and right M products in attribute M.
当正在被测试的替代,在属性M.的左和右的M产品列表


(作者)----------Author(s)----------


Markus Reder and Roger Bivand



参见----------See Also----------

lm.morantest.exact, localmoran.sad
lm.morantest.exact,localmoran.sad


实例----------Examples----------


eire <- readShapePoly(system.file("etc/shapes/eire.shp", package="spdep")[1],
  ID="names", proj4string=CRS("+proj=utm +zone=30 +units=km"))
eire.nb <- poly2nb(eire)
#data(eire)[数据(爱尔兰)]
e.lm <- lm(OWNCONS ~ ROADACC, data=eire)
localmoran.sad(e.lm, nb=eire.nb)
localmoran.exact(e.lm, nb=eire.nb)
localmoran.exact(e.lm, nb=eire.nb, useTP=TRUE)
e.errorsar <- errorsarlm(OWNCONS ~ ROADACC, data=eire,
listw=nb2listw(eire.nb))
lm.target <- lm(e.errorsar$tary ~ e.errorsar$tarX - 1)
localmoran.exact.alt(lm.target, nb=eire.nb)
Omega <- invIrW(nb2listw(eire.nb), rho=0.6)
Omega1 <- tcrossprod(Omega)
localmoran.exact.alt(lm.target, nb=eire.nb, Omega=Omega1)
localmoran.exact.alt(lm.target, nb=eire.nb, Omega=Omega1, useTP=TRUE)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-17 21:41 , Processed in 0.038131 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表