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

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

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

                                        Provides constants for spatial weights matrices
                                         提供的空间权重矩阵的常数

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

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

The function calculates the constants needed for tests of spatial autocorrelation for general weights matrices represented as listw objects. Note: from spdep 0.3-32, the values of S1 and S2 are returned correctly for both underlying symmetric and asymmetric neighbour lists, before 0.3-32, S1 and S2 were wrong for listw objects based on asymmetric neighbour lists, such as k-nearest neighbours (thanks to Luc Anselin for finding the bug).
该函数计算所需的常量,一般的权重矩阵表示为listw对象的空间自相关的测试。注意:从spdep 0.3-32,S1和S2的值被正确返回两个基本对称和非对称的邻居列表,在0.3-32之前,S1和S2是错误的为listw不对称的邻居列表的基础上的对象,如k-最近邻居(吕克Anselin发现bug)。


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


spweights.constants(listw, zero.policy=NULL, adjust.n=TRUE)
Szero(listw)



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

参数:listw
a listw object from for example nb2listw
一个listw的对象例如nb2listw


参数:zero.policy
default NULL, use global option value; if TRUE ignore zones without neighbours, if FALSE fail when encountered
默认NULL,使用全局选项的值,如果是TRUE的情况下忽略区域邻居,如果为FALSE失败时遇到


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


参数:n
number of zones
的区域数


参数:n1
n - 1
N  -  1


参数:n2
n - 2
N  -  2


参数:n3
n - 3
N  -  3


参数:nn
n * n
N * N


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


参数:S1
S1 sum of weights
S1的重量总和


参数:S2
S2 sum of weights
S2的权重总和


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


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



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

<h3>See Also</h3>

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


data(oldcol)
B <- spweights.constants(nb2listw(COL.nb, style="B"))
W <- spweights.constants(nb2listw(COL.nb, style="W"))
C <- spweights.constants(nb2listw(COL.nb, style="C"))
S <- spweights.constants(nb2listw(COL.nb, style="S"))
U <- spweights.constants(nb2listw(COL.nb, style="U"))
print(data.frame(rbind(unlist(B), unlist(W), unlist(C), unlist(S), unlist(U)),
  row.names=c("B", "W", "C", "S", "U")))

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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