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

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

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

                                        Exact global Moran's I test
                                         精确全局Moran的I测试

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

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

The function implements Tiefelsdorf's exact global Moran's I test.
该函数实现Tiefelsdorf的确切全局Moran的I测试。


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


lm.morantest.exact(model, listw, zero.policy = NULL, alternative = "greater", spChk = NULL, resfun = weighted.residuals, zero.tol = 1e-07, Omega=NULL, save.M=NULL, save.U=NULL, useTP=FALSE, truncErr=1e-6, zeroTreat=0.1)
## S3 method for class 'moranex'
print(x, ...)



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

参数:model
an object of class lm returned by lm; weights may be specified in the lm fit, but offsets should not be used
类的一个对象lm返回lm;权重可以指定lm适合,但偏移量不应该使用


参数:listw
a listw object created for example by nb2listw
例如创建一个listw对象的nb2listw


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


参数:zero.tol
tolerance used to find eigenvalues close to absolute zero
公差找到特征值接近绝对零度


参数: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.M
return the full M matrix for use in spdep:::exactMoranAlt
返回完整的M矩阵用于在spdep:::exactMoranAlt


参数:save.U
return the full U matrix for use in spdep:::exactMoranAlt
返回完整的铀材料使用中spdep:::exactMoranAlt


参数: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
a moranex object
一个moranex对象


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


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

A list of class moranex with the following components:
类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 (excluding zero values)
特征值(不包括零值)


参数:oType
usually set to "E"
通常设置为“E”


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


参数:df
degrees of freedom
自由度


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


Markus Reder and Roger Bivand



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

lm.morantest.sad
lm.morantest.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)
lm.morantest(e.lm, nb2listw(eire.nb))
lm.morantest.sad(e.lm, nb2listw(eire.nb))
lm.morantest.exact(e.lm, nb2listw(eire.nb))
lm.morantest.exact(e.lm, nb2listw(eire.nb), useTP=TRUE)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 01:54 , Processed in 0.021038 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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