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

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

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

                                        Compute Moran's I
                                         计算莫兰的我

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

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

A simple function to compute Moran's I, called by moran.test and moran.mc;
一个简单的函数来计算莫兰的我,被称为moran.test和moran.mc;


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


moran(x, listw, n, S0, zero.policy=NULL, NAOK=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


参数:n
number of zones
的区域数


参数:S0
global sum of weights
全球的权重总和


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


参数:NAOK
if 'TRUE' then any 'NA' or 'NaN' or 'Inf' values in x are passed on to the foreign function.  If 'FALSE', the presence of 'NA' or 'NaN' or 'Inf' values is regarded as an error.
如果TRUE,那么任何“NA”或“南”或“天道酬勤”在x的值传递给外部函数。如果“假”,“NA”或“南”或“天道酬勤”价值的存在被认为是一个错误。


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

a list of
的列表


参数:I
Moran's I
莫兰是我


参数:K
sample kurtosis of x
峰度为x


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


Roger Bivand <a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>



参考文献----------References----------

<h3>See Also</h3>

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


data(oldcol)
col.W <- nb2listw(COL.nb, style="W")
crime <- COL.OLD$CRIME
str(moran(crime, col.W, length(COL.nb), Szero(col.W)))
is.na(crime) <- sample(1:length(crime), 10)
str(moran(crime, col.W, length(COL.nb), Szero(col.W), NAOK=TRUE))

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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