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

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

[复制链接]
发表于 2012-9-30 12:19:03 | 显示全部楼层 |阅读模式
WeightMatrix(spacom)
WeightMatrix()所属R语言包:spacom

                                        Create weight matrices
                                         创建权重矩阵

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

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

Creates a weight matrix corresponding to a given distance matrix, bandwidth and kernel function for spatially weighted multilevel analysis.
创建对应于一个给定的距离矩阵,带宽和核函数的空间加权的多级分析的权重矩阵。


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


WeightMatrix(distance.matrix, bandwidth, kernel = NULL,
  moran = FALSE)



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

参数:distance.matrix
square matrix of dimension n by n, where n is the number of contextual units.  
方阵尺寸n by n,其中n是上下文相关单位的数量。


参数:bandwidth
scalar numeric value specifying the bandwidth h  
标量数值指定的带宽h的


参数:kernel
function applied to the distance matrix. By default NULL, in which case the kernel function  <p align="center">w_ij = f(d, h) =   (1/2)^((d_ij/h)^2)
功能应用到距离矩阵。缺省情况下NULL,在这种情况下,核函数<p ALIGN="CENTER">w_ij = f(d, h) =   (1/2)^((d_ij/h)^2)

is used, where w_ij, d_ij,   h are elements of the weight matrix W, of the distance matrix D and the bandwidth h. User-supplied kernel functions have to take 2 arguments and return a matrix of the same dimension as the first argument.  
时,其中w_ij, d_ij,   h的元素的权重矩阵W,距离矩阵D和带宽h中。用户提供的核心功能有2个参数作为第一个参数,并返回相同尺寸的矩阵。


参数:moran
a logical value specifying whether the proximity weights matrix should have zeros in the diagonal. By default set to FALSE.  
一个逻辑值,指明是否应该有接近权重矩阵的对角线上的零。默认设置为FALSE。


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

A weights matrix of the same dimension as distance.matrix.
一个权重矩阵的尺寸相同distance.matrix。


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




Till Junge, Sandra Penic, Guy Elcheroth




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


# creating geographical proximity weight, with bandwidth h=50[GEO上接近的重量,带宽H = 50]

data(d_geo)
geow_50 <- WeightMatrix(distance.matrix=d_geo, bandwidth=50)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-10 02:42 , Processed in 0.023016 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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